dart

dart

What is string interpolation in dart

String interpolation in dart explanation with examples. Dart string interpolation is a way to insert expression or identifiers in a string easily.

Read
dart

How to multiply strings in Dart

We can use the multiplication operator * to multiply strings for n number of times in Dart. In this post, I will show you how to use the multiplication operator.

Read
dart

Dart program to find the hash value of a string

Dart program to find the hash value of a string. Dart string provides a property called hashCode that returns the hash value of a string.

Read
dart

Dart program to round a number to its nearest value

Dart program to round a number to its nearest value. Dart provides round() method in its Number class to round a number.

Read
dart

Dart program to find the absolute value of a number

Dart program to find the absolute value of a number. We can use Number.abs method to find the absolute value of a number.

Read
dart

How to get the current date-time in Dart

Dart provides DateTime class to deal with date and time data. In this post, we will learn how to get the current date-time using DateTime and different other properties available.

Read
dart

How to check if a string contains a number in Dart

Learn how to check if a string contains at least one number in dart/flutter. We will use contains method with regex to check for numbers in a string.

Read
dart

Constants defined in dart-math library

Dart math library provides a couple of mathematical constants and functions. In this post, we will check the constants of dart math library with example.

Read
dart

Dart program to swap two user given numbers

Dart program to swap two user input numbers. The program will take the numbers as input from the user, swap them and print the swapped values.

Read
dart

Different ways to remove items from a dart list

Different ways to remove items from a dart list. Learn how to remove single item, multiple items, remove items at specific index, remove the last item, remove items in range and remove items based on a function.

Read