update<T> method

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

Implementation

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

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