Notifier<S> constructor
Notifier<S> (
- S state
Creates a Notifier with the given initial state.
state
is the initial state value for the notifier.
Example:
class CounterNotifier extends Notifier<int> {
CounterNotifier() : super(0); // Start with initial state of 0
}
Implementation
Notifier(super.state) {
_initialize();
}