Hydro class abstract




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


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


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

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.