This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| void _business() async { | |
| _locationBloc.add(GetState()); //get states here | |
| List<StateModel> states = []; | |
| List<LGAModel> lgas = []; | |
| showGeneralDialog( | |
| barrierDismissible: false, | |
| barrierColor: Colors.grey, | |
| transitionDuration: Duration(milliseconds: 200), | |
| context: context, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const validate = (val, rules, connectedValue) => { | |
| let isValid = true; | |
| for (let rule in rules) { | |
| switch (rule) { | |
| case "isEmail": | |
| isValid = isValid && emailValidator(val); | |
| break; | |
| case "minLength": | |
| isValid = isValid && minLengthValidator(val, rules[rule]); | |
| break; |