dart

dart

Dart program to find substring in a string

Dart program to find a substring in a string. The program will read the string and indices as input from the user and prints out the substring in that range.

Read
dart

Dart program to find the remainder using remainder method

Dart program to find the remainder by taking two numbers as user inputs. We will use remainder() method of dart to find the remainder.

Read
dart

How to find the ceil and floor values of a number in Dart

How to find ceil and floor values of a number in dart. ceilf of a number returns the smallest integer value that is greater than or equal to the number and floor is largest value less than or equal to the number.

Read
dart

Dart program to check if a year is leap year or not

Dart program to check if a year is leap year or not. We will write one dart program to take one year as input from the user and it will print if the year is leap year or not.

Read
dart

Encoding/decoding JSON in Dart explanation with examples

Learn how to encode/decode JSON in dart with examples. dart:convert is used for data conversion as well as for encoding/decoding JSON values.

Read
dart

How to shuffle a dart list

learn how to shuffle a dart list. shuffle() method is used for list shuffling in dart. We can also pass one random value to this method.

Read
dart

Dart program to check if a list is empty or not

Dart program to check if a list is empty or not. Dart provides couple of different properties to check if a list is empty.

Read
dart

Dart program to check if a list contains a specific element or not

Dart program to check if a list contains a specific element or not. Learn to solve this by using a for-in loop, using any() and using contains() method.

Read
dart

Dart check for any or every element in a list satisfy a given condition

Dart program to check if any or every element of a list satisfy a specific condition or not.

Read
dart

How to remove string character using index in Dart

Sometimes we need to remove one character from a string using its index. The string is immutable. We can't modify it. The only way is to create one different new string from the old one.

Read