on method Null safety
- {dynamic error(
- Object error,
- StackTrace stackTrace
- dynamic change(
- Change<
CubixState< changeTState> >
- Change<
Implementation
void on(
{Function(Object error, StackTrace stackTrace)? error,
Function(Change<CubixState<TState>> change)? change}) {
_onChange = change;
_onError = error;
}