rewrote check_required and did some map stuff. also fixed that typed in text in add place isnt saved
This commit is contained in:
1 parent
b7b16c6acb
commit
cdd7f5cafb
5 files changed
+158
-95
No files matched your search
@@ -0,0 +1,12 @@
|
||||
class CheckRequired {
|
||||
static bool checkRequired(Map<String, Map<String, dynamic>> fieldsList) {
|
||||
for (String key in fieldsList.keys) {
|
||||
if (fieldsList[key]!["required"]! && fieldsList[key]!["controller"]!.text.isEmpty) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user