如果字符串为空,则返回 true ;否则返回 false 。
isEmpty - 语法
String.isEmpty
isEmpty - 示例
void main() { String str="Learnfk"; print(str.isEmpty); }
它将产生以下输出-。
False
参考链接
https://www.learnfk.com/dart-programming/dart-programming-string-property-isempty.html
如果字符串为空,则返回 true ;否则返回 false 。
String.isEmpty
void main() { String str="Learnfk"; print(str.isEmpty); }
它将产生以下输出-。
False
https://www.learnfk.com/dart-programming/dart-programming-string-property-isempty.html
暂无评论
2023-12-23
2023-12-23
2023-12-23
2023-12-23
2023-12-23
2023-12-23
2023-12-23
2023-12-23
2023-12-23
2023-12-23
2024-05-20
2024-05-20
2024-05-20
2024-05-20
2024-05-20
2024-05-20
2024-05-18
2024-05-18
2024-05-17
2024-05-17
2024-05-17
2024-05-17
2024-05-17
2024-05-17
2024-05-17
2024-05-17
2024-05-17
2024-05-17
2024-05-17
2024-05-17