Provider class

A widget that propagates multiple Store instances down the tree.

Notice: It is the developer that should handle the initialization and disposal of stores by calling Store.initialize and Store.dispose whenever it is necessary.

Inheritance

Constructors

Provider({required List<Store> stores, required Widget child, String? key, Ref? ref})
Creates a new instance of Provider.
const

Properties

child Widget
finalinherited
hashCode int
The hash code for this object.
no setterinherited
key String?
finalinherited
ref Ref?
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stores List<Store>
final

Methods

createNode() InheritedNode<InheritedWidget>
Returns a Node corresponding to this Widget at a particular location in the Node tree.
inherited
matches(Widget otherWidget) bool
Checks if two widgets match during a ReassemblableNode reassembly.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
updateShouldNotify(covariant Provider oldWidget) bool
Whether ReassemblableNode.reassemble should be called on dependent nodes after this widget is updated.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

of(BuildContext context) Provider