update<T> method

Future<void> update<T>(
  1. T model
)

Updates the form model with new data.

  • model: The new data to update the form model.

Implementation

Future<void> update<T>(T model) async {
  if (state is AbstractFormBasicState) {
    (state as AbstractFormBasicState).model = model;
  }

  updateState(state.copyWith() as S);
}