runNotifierBuild method

  1. @override
Stream<T> runNotifierBuild(
  1. AsyncNotifierBase<T> notifier
)

Runs the build method of a notifier.

This is an implementation detail for differentiating StreamNotifier.build from FamilyStreamNotifier.build.

Implementation

@override
Stream<T> runNotifierBuild(AsyncNotifierBase<T> notifier) {
  // Not using "covariant" as riverpod_generator subclasses this with a
  // different notifier type
  return (notifier as AutoDisposeStreamNotifier<T>).build();
}