update<T> method
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);
}