String Property length

  • Post author:
  • Post category:Dart
  • Post comments:2 Comments
String Property length

In this guide, we will discuss string property length in Dart Programming Language. Returns the length of the string including space, tab and newline characters.

Syntax

String.length

Example

void main() { 
   String str = "Hello All"; 
   print("The length of the string is: ${str.length}"); 
} 

It will produce the following output −.

The length of the string is: 9

Next Topic : Click Here

This Post Has 2 Comments

Leave a Reply