src/main/resources/code/flutter/lib/utils/string_util.dart
@@ -6,6 +6,12 @@ .hasMatch(str); } static bool isEmail(String str) { return RegExp( '^(\\w)+(\\.\\w+)*@(\\w)+((\\.\\w+)+)\$') .hasMatch(str); } static bool isNullOrEmpty(String? str) { return str==null|| str.isEmpty || str.trim().isEmpty; }