wms_app_jingwangbancai/lib/utils/stringUtils.dart

17 lines
290 B
Dart
Raw Normal View History

2024-12-29 13:05:26 +08:00
class StringUtils {
static bool isEmpty(String? value) {
if(value == null || value == "") {
return true;
}
return false;
}
static bool isNumber(String? value) {
if(isEmpty(value)) {
return false;
}
return RegExp(r'^\d+$').hasMatch(value!);
}
}