FilteredBeacon<T> class

Inheritance
Available extensions

Constructors

FilteredBeacon({T? initialValue, required BeaconFilter<T> filter})

Properties

filter → BeaconFilter<T>
final
hashCode int
The hash code for this object.
no setterinherited
isNullable bool
no setterinherited
listeners → Listerners
finalinherited
previousValue → T?
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value ↔ T
getter/setter pairinherited-getteroverride-setter

Methods

dispose() → void
Clears all registered listeners and reset the beacon to its initial state.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
peek() → T
inherited
reset() → void
Set the beacon to its initial value and notify all listeners
inherited
set(T newValue, {bool force = false}) → void
override
subscribe(void callback(T), {bool startNow = false}) → VoidCallback
Subscribes to changes in the beacon returns a function that can be called to unsubscribe
inherited
toggle() → void

Available on WritableBeacon<bool>, provided by the BoolUtils extension

toString() String
A string representation of this object.
inherited
watch(BuildContext context) → T

Available on BaseBeacon<T>, provided by the BeaconUtils extension

Watches a beacon and triggers a widget rebuild when its value changes.
wrap<U>(ReadableBeacon<U> target, {dynamic then(WritableBeacon<T> p1, U p2)?, bool startNow = true}) WritableBeacon<T>
Wraps a ReadableBeacon and comsumes its values
inherited

Operators

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