updateAndValidateField method
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();
}