DripProvider<D extends Drip> class

DripProvider is a InheritedWidget that provides the Drip to its children The Drip is created using the create function Children can access the Drip using the DripProvider.of method or using BuildContext extension

Inheritance

Constructors

DripProvider({Key? key, required DCreate<D> create, required Widget child})
const

Properties

child Widget
final
create DCreate<D>
final
hashCode int
The hash code for this object.
no setterinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith(Widget child) DripProvider<D>
createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<DripProvider<D>>
Creates the mutable state for this widget at a given location in the tree.
override
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object.
inherited
toStringShort() String
A short, textual description of this widget.
inherited

Operators

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

Static Methods

dispatch<D extends Drip>(BuildContext context, DripEvent event) → void
Method to dispatch an event to the Drip using the context
of<D extends Drip>(BuildContext context, {bool listen = false}) → D
read<D extends Drip>(BuildContext context) → D
Method to access to the Drip using the context
watch<D extends Drip>(BuildContext context) → D
Method to watch changes in the Drip using the context