state<N extends StateNotifier<S>, S> static method

StateNotifierProvider<N, S> state<N extends StateNotifier<S>, S>(
  1. CreatorCallback<N, dynamic> callback, {
  2. 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,
  );
}