![]() |
VOOZH | about |
To find the length of a string in the dart, we make use of the length property of a string class in Dart. This method returns the length of the string, which is an integer.
Syntax: string_name.length
Return Type: Integer
Image Representation:
Example:
Output:
15Explanation: The length of the string, including spaces in the above example, counts up to 15.
Note: The length of the empty string is equal to 0.