state<N extends StateNotifier<S> , S> static method
StateNotifierProvider<N, S>
state<N extends StateNotifier<S> , S>(
- CreatorCallback<
N, dynamic> callback, { - bool autoDispose = true,
creates a StateNotifierProvider
Implementation
static StateNotifierProvider<N, S> state<N extends StateNotifier<S>, S>(
CreatorCallback<N, dynamic> callback, {
bool autoDispose = true,
}) {
return StateNotifierProvider<N, S>(
callback,
autoDispose: true,
);
}