Substring in dart

Substring in dart

In Dart, you can use the String method to extract a substring from a string.

// sunstring in dart
void main()
{
  String str= "Hello Jeet how are you!";

  print(str.substring(0,8));
}