notifier property

  1. @override
AlwaysAliveRefreshable<NotifierT> notifier
latefinal

Obtains the StateNotifier associated with this provider, without listening to state changes.

This is typically used to invoke methods on a StateNotifier. For example:

Button(
  onTap: () => ref.read(stateNotifierProvider.notifier).increment(),
)

This listenable will notify its notifiers if the StateNotifier instance changes. This may happen if the provider is refreshed or one of its dependencies has changes.

Implementation

@override
// ignore: deprecated_member_use_from_same_package
late final AlwaysAliveRefreshable<NotifierT> notifier = _notifier(this);