isEmpty
如果字符串为空,则返回true ; else返回false 。
语法 (Syntax)
String.isEmpty
例子 (Example)
void main() {
String str = "Hello";
print(str.isEmpty);
}
它将产生以下output - 。
False
如果字符串为空,则返回true ; else返回false 。
String.isEmpty
void main() {
String str = "Hello";
print(str.isEmpty);
}
它将产生以下output - 。
False