notifier property

  1. @override
Refreshable<NotifierT> notifier
latefinal

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

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

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

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

Implementation

@override
late final Refreshable<NotifierT> notifier =
    _streamNotifier<NotifierT, T>(this);