FlameBlocProvider<B extends BlocBase<S> , S>.value constructor
FlameBlocProvider<B extends BlocBase<S> , S>.value ({
- required B value,
- List<
Component> ? children,
A Component
that provides a Bloc
to its children
Will provide the given value
to its children, when this constructor is
used, the user is responsible for disposing of the bloc.
Implementation
FlameBlocProvider.value({
required B value,
List<Component>? children,
}) : _bloc = value,
_created = false {
_addChildren(children);
}