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

StateNotifierTagProvider<N, S> stateTag<N extends StateNotifier<S>, S>(
  1. CreatorCallback<N, dynamic> callback, {
  2. bool autoDispose = true,
})

creates a StateNotifierTagProvider

Implementation

static StateNotifierTagProvider<N, S> stateTag<N extends StateNotifier<S>, S>(
  CreatorCallback<N, dynamic> callback, {
  bool autoDispose = true,
}) {
  return StateNotifierTagProvider<N, S>(
    callback,
    autoDispose: true,
  );
}