Hydro class abstract

Constructors

Hydro()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
update() → void
Updates the UI

Operators

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

Static Methods

dispose<T>(State<StatefulWidget> state) → void
Removes State from UI update list. Usually called at the end of the widget's lifecycle, when a StatefulWidget's State is no longer used/shown and is removed from the widget tree (unmounted).
get<T>([State<StatefulWidget>? state]) → T?
Retrieves a service from the services container, if any. If service of type T, does not already exist, this will return null.
mustGet<T>([State<StatefulWidget>? state]) → T
Same as get method, but without the nullability.
set(Object o, {dynamic forceReplace = false}) → void
Adds a service (class object) to the container. In case the service already exists in the container, this will have no effects. to force replace the existing service (if any), set forceReplace: true.