hooks_state_notifier library
Functions
-
useCreateStateNotifier<
T extends StateNotifier> (CreateStateNotifier< T> create) → T -
Creates a memoized
StateNotifier
instance viacreate
, dispose it when the widget disposes. -
useStateNotifier<
T> (StateNotifier< T> stateNotifier) → T -
Subscribes to a
StateNotifier
and mark the widget as needing build whenever the state is changed.
Typedefs
-
CreateStateNotifier<
T extends StateNotifier> = T Function()