dart

dart

How to print unicode of character in dart

Dart string is a sequence of characters. Each character is represented as UTF-16 in dart. We can print the UTF-16 code unit or the Unicode of each character. Dart string has all these properties defined in it. In this tutorial, I will show you these properties and method with different examples :.

Read
dart

Dart program to check if a character is uppercase

In this dart tutorial, we will learn how to check if the first character of a string is in uppercase or not. You can use the same approach to find out if any character is uppercase or lowercase. This is one common problem and you need to use a third-party library, dart doesn't have any inbuilt methods.

Read
dart

Introduction to Dart Map class

Map is used to store key-value pairs in dart. Value can occur multiple times but each key must be unique. The key is used to retrieve the value associated with it. Map is growable. You can change its length.

Read
dart

Dart set explanation with examples

A set is used to store a collection of objects where each object can exist only once in that set. Set is defined in the dart:core library and a couple of other classes that implement set.

Read
dart

Constructors of a Dart list

Dart list comes with a couple of different constructors. We can create one empty list, a list with filled values, etc. using these constructors. In this tutorial, we will learn how to use different types of dart list constructors with examples.

Read
dart

7 different ways to find the largest, smallest number in dart list

7 different programs in dart to find out the maximum/largest and minimum/smallest values of a dart list. By using a for loop, by sorting the list, using forEach, reduce, fold and dart:math.

Read
dart

5 different ways to find the sum of all dart list elements

In this dart programming tutorial, we will learn five different ways to find the sum of all elements in a dart list with example for each. These approaches will work for both growable and fixed-length lists.

Read
dart

How to install dart sdk on mac

You can install dart SDK on Mac using homebrew. If you have homebrew installed, then you can skip step 1. Else, follow along our instructions to set up dart SDK on your Mac :.

Read
dart

Trim a string in Dart : Explanation with examples

Trim a string means removing the extra white spaces at the end of the string or at the start of the string. Trim is really useful if you don't want that extra white space. If you are comparing one string value in your application with a value you are getting from the server, it will be a problem if the server is sending strings with leading or trailing white spaces. For example,if you are comparing "hello" in your application with a string you will get from the server and if the server sends "hello ", the comparison may fail if you are not removing the trailing blank spaces.

Read
dart

Convert all characters in a string to uppercase and lowercase in dart

In this dart programming tutorial, we will learn how to convert all characters of a string to upper-case and to lower-case. The program will read the string as an input from the user. It will then convert all characters to upper case and to lower case.

Read