MultiBlocProvider
or
define multiple BlocProviders to make multiple Blocs available to some composable subtree
The syntax for defining the list of BlocProviders is as follows:
where content()
is a composable function. for which we want the blocs made available
Any number of BlocProviders
definitions is supported
The syntax of each BlocProvider
in the list is the same as the syntax of a single BlocProvider
, that is there are two options:
for creating a Bloc bound the lifecycle of the current Screen, or
for specifying a Bloc whose lifecycle is managed by some other Screen
.
Last updated