when<R> method

WhenFilteredProvider<N, S> when<R>(
  1. BuildWhenCallback<S> callback, {
  2. String? tag,
  3. bool booleanCallback = false,
})

Implementation

WhenFilteredProvider<N, S> when<R>(
  BuildWhenCallback<S> callback, {
  String? tag,
  bool booleanCallback = false,
}) {
  return WhenFilteredProvider(
    callback: callback,
    notifier: read(tag: tag),
  );
}