validate method

  1. @override
Future<ValidationResult?> validate(
  1. BuildContext context,
  2. T? value,
  3. 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;
}