RtMultiProvider
Esta página aún no está disponible en tu idioma.
The RtMultiProvider
widget is a container for multiple providers that allows you to provide multiple dependencies to the widget tree.
Syntax
Properties
providers
: A list ofRtProvider
widgets that are to be wrapped by theRtMultiProvider
.key
: An optionalKey
to use for identifying the widget.child
: An optionalWidget
that remains static while the widget tree is rebuilt. It is passed to thebuilder
function if it is defined.-
builder
: An optional function which builds a widget depending on theRtMultiProvider
. If it not defined, thechild
widget is returned. It receives the following arguments:context
: TheBuildContext
of the widget. A handle to the location ofRtMultiProvider
in the widget tree.child
: Thechild
widget passed to theRtMultiProvider
widget.
Usage
In the following example, we have a simple counter application that uses the RtMultiProvider
widget to provide multiple dependencies to the widget tree.