Welcome to my blog !

Flutter/Dart How to: Different ways to add leading trailing zeroes to number| Dart By Example

March 12, 2022 ·  2 min read

This tutorial shows multiple ways to add leading zeroes to an integer number in Dart/Flutter programming. This talks about multiple examples of the below things. How to add left and right pad zeroes to integer numbers? prefix and suffix zeroes to number in dart leading and trailing zeroes to a number How to add lead zeroes to Integer Number Leading zero is a zero added to integer number with a given specific length on the left side or right side of a given number digits...

How to Sort List of numbers or String in ascending and descending in Dart or Flutter example

March 11, 2022 ·  2 min read

This tutorial shows multiple ways to sort a list or array of numbers or strings in ascending and descending order. We can use either Array or List data structured used to sort numbers. How to sort List of Numbers in natural and reverse order. Let us say We have a set of numbers in a list. var numbers = [33, 3, 31, 4, 40]; This sort of List of numbers in dart and flutter...

How to find min and max value in Dart List? Flutter List| Dart By Example

March 10, 2022 ·  3 min read

List contains multiple values, sometimes you need to get the minimum and maximum values from the given list. Let’s see some programs to find the min and max value in different ways. How to find the maximum and minimum value of a List of Numbers in the Dart program? use Sort the list and get the first and last Element in Dart In this example, First sort the list of numbers using the sort() method....

Different ways to print an object in Dart and Flutter| Dart By Example

March 10, 2022 ·  3 min read

This tutorial shows multiple ways to print a class object in Dart and flutter In this post, you will learn multiple things How to print Class objects How to print Class object using toString() method How to fully dump and print object variables to console? Print object properties of an instance How to show data from a class Print object variable into JSOn format. Dart class contains properties and functions, It is a blueprint for an instance of the object created....

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....

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