返回字符串的长度,包括空格,制表符和换行符。
Length - 语法
String.length
Length - 示例
void main() { String str="Hello All"; print("The length of the string is: ${str.length}"); }
它将产生以下输出-。
The length of the string is: 9
参考链接
https://www.learnfk.com/dart-programming/dart-programming-string-property-length.html
标签:String,programming,Length,无涯,length,dart,Dart,string From: https://blog.51cto.com/u_14033984/8389002