rebuild<N extends RebuildableNotifier<T, R>, T, R> abstract method

R rebuild<N extends RebuildableNotifier<T, R>, T, R>(
  1. RebuildableProvider<N, T, R> provider
)

Rebuilds a rebuildable provider (e.g. ViewProvider, FutureProvider) and returns the result of the builder function.

Remember: Rebuildable providers allow you to watch other providers within the builder function.

This is NOT the same as calling Ref.dispose and then Ref.read. In this case the notifier is disposed and listeners won't be notified.

Implementation

R rebuild<N extends RebuildableNotifier<T, R>, T, R>(
  RebuildableProvider<N, T, R> provider,
);