dart

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
dart

Dart program to concat string with integer

In this tutorial, we will learn how to concatenate one string with an integer. For example, if one integer 25 is given, we will concatenate with one string, say degree to create the final string 25 degree.

Read
dart

Dart metadata and how to create custom metadata

A metadata starts with an @ character followed by the name of the metadata. Metadata is used to provide extra information in code. For example, if you override one method, @override is used above the overridden method name. This is a metadata annotation. We can create one annotation in dart.

Read
dart

Typedef in dart with examples

typedef is a function-type alias. Functions are objects in dart-like any other type. typedef are alias for functions. typedef keyword is used to define a typedef.

Read
dart

Dart comments and types of comments supported in dart

Comments are equally important in any programming language. Comments are ignored by the compiler i.e. they are not executed by the compiler and they don't provide any impact on the output of the program.

Read