updateAndValidateField method

  1. @action
Future<void> updateAndValidateField(
  1. dynamic newValue,
  2. T type
)

Updates the value of the field and validates it, updating the computed variable isFormValid

Implementation

@action
Future<void> updateAndValidateField(dynamic newValue, T type) async {
  inputMap[type] = await inputMap[type]!.updateValue(newValue).validateItem();
}