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