validateFormWithErrors method

Tuple2<bool, Map<String, dynamic>> validateFormWithErrors(
  1. Map<String, dynamic> errors, {
  2. bool consumeError = true,
})

Implementation

Tuple2<bool, Map<String, dynamic>> validateFormWithErrors(
    Map<String, dynamic> errors, {bool consumeError = true}) {
  this.errors = errors;
  this.remainingError = {...errors};
  return Tuple2(
      validateForm(consumeError: consumeError), this.remainingError);
}