ProviderRef<T> class

A reference to a provider that provides methods to read and watch values. Similar to Riverpod's ProviderRef but adapted for hybrid_manager.

Constructors

ProviderRef.new(BaseProvider<T> provider)
Creates a provider reference.

Properties

hashCode int
The hash code for this object.
no setterinherited
provider BaseProvider<T>
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

dispose() → void
Disposes the reactive wrapper if it exists.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
read() → T
Reads the current value from the provider.
refresh() → void
Refreshes the reactive value if one exists.
toString() String
A string representation of this object.
inherited
watch() Reactive<T>
Gets a reactive wrapper around the provider value. This allows watching for changes if the provider supports it.

Operators

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