BaseBeacon<T> class
abstract
- Available extensions
Constructors
- BaseBeacon([T? initialValue])
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isNullable → bool
-
no setter
- listeners → Listerners
-
final
- previousValue → T?
-
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- value → T
-
no setter
Methods
-
dispose(
) → void - Clears all registered listeners and reset the beacon to its initial state.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
peek(
) → T -
reset(
) → void - Set the beacon to its initial value and notify all listeners
-
subscribe(
void callback(T), {bool startNow = false}) → VoidCallback - Subscribes to changes in the beacon returns a function that can be called to unsubscribe
-
toString(
) → String -
A string representation of this object.
inherited
-
watch(
BuildContext context) → T -
Available on BaseBeacon<
Watches a beacon and triggers a widget rebuild when its value changes.T> , provided by the BeaconUtils extension
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited