Flutter Riverpod StateNotifierProvider: only watch changes for part of a model
问题 I have a model like this: class TimerModel { const TimerModel(this.timeLeft, this.buttonState); final String timeLeft; final ButtonState buttonState; } enum ButtonState { initial, started, paused, finished, } And here is the StateNotifierProvider: class TimerNotifier extends StateNotifier<TimerModel> { TimerNotifier() : super(_initialState); static const int _initialDuration = 10; static final _initialState = TimerModel( _durationString(_initialDuration), ButtonState.initial, ); final Ticker