String Property length
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
dart_programming_string.htm
Advertisements