{

Welcome to my blog !


How to convert Double to String or String to double in Dart| Flutter By Example

March 8, 2022 ·  4 min read

This tutorial shows multiple ways to convert double to String or string to double in Dart and flutter programming language. The string is a string of numbers or characters enclosed in double quotes or single quotes. A double is a primitive type of floating-point number in Dart programming Both are of different types, Automatic conversions are not possible. So, We have to manually Convert String into double or double to String with examples...

Flutter runtimeType and is operator| Flutter runtime type of an object

March 8, 2022 ·  2 min read

This tutorial shows multiple ways how to check a runtime of an object. In Dart programming, there are two ways we can know the type of an object or a variable. runtimeType is operator This checks dynamic and static types and helps developer to find the following things Check a runtime type of an object Object is assignable to another type using is operator. Check type of an variable declared in Dart or Flutter....

Find the number of days between two dates in dart?| Flutter By Example

March 7, 2022 ·  2 min read

In this tutorial, We will see how to get several days between two dates in Flutter programming. To calculate the number of days between two days, We can use the difference of the DateTime object and call the Duration.inDays method Sometimes, We need to calculate the number of days between the date of birth and the current date. Number of Days between two Dates using DateTime.Difference() method Two DateTime variables are created, one is the date of birth, other is the current Date using DateTime....

How to delete duplicates in a Dart List? Flutter List| Dart By Example

March 6, 2022 ·  1 min read

List contains multiple values, sometimes you need to delete the duplicate from the list. In this post, We are going to learn how to delete duplicates from List in Dart or flutter. Dart list allows duplicate values, if you store the same value multiple values, It stores the value as a different element. How to delete duplicate items from a list in Dart or Flutter? There are multiple ways we can do...

How to create a sequence number in a list in Dart or Flutter | Dart By Example

March 6, 2022 ·  2 min read

Sometimes, We need to generate a fixed list with a sequence of numbers from 0 to N. This article, Shows multiple ways to create a list of 0 to n numbers. How to create a sequence of numbers list for a given number in Dart or Flutter There are multiple ways we can create a sequence of numbers in a list use list generate function generate() function in a list creates a list with values generated with a given function....

Subscribe
You'll get a notification every time a post gets published here.