BlocProviderFamily<B extends BlocBase<S> , S, Arg>.scoped constructor
BlocProviderFamily<B extends BlocBase<S> , S, Arg>.scoped (
- String name
BlocProviderFamily.scoped
Creates a BlocProvider that will be scoped and must be overridden. Otherwise, it will throw an UnimplementedProviderError.
Implementation
BlocProviderFamily.scoped(String name)
: this(
(ref, arg) => throw UnimplementedProviderError(name),
name: name,
);