validate method
Future<ValidationResult?>
validate(
- BuildContext context,
- T? value,
- FormValidationMode lifecycle
override
Implementation
@override
Future<ValidationResult?> validate(
BuildContext context, T? value, FormValidationMode lifecycle) async {
if (this.mode.contains(lifecycle)) {
return await validator.validate(context, value, lifecycle);
}
return null;
}