setValidator method

void setValidator(
  1. String type,
  2. FutureOr<bool> validator(
    1. String
    )
)

Implementation

void setValidator(String type, FutureOr<bool> Function(String) validator) {
  _validators[type] = validator;
}