WireData class

Constructors

WireData(String _key, dynamic _onRemove(String)?, WireDataOnReset? _onReset)

Properties

getter WireDataGetter
no getter
hashCode int
The hash code for this object.
no setterinherited
isGetter bool
no setter
isLocked bool
no setter
isSet bool
This property needed to distinguish between newly created and not set WireData which has value of null at the beginning And with WireData at time when it's removed, because when removing the value also set to null
no setter
key String
no setter
numberOfListeners int
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value ↔ dynamic
getter/setter pair

Methods

hasListener(WireDataListener listener) bool
lock(WireDataLockToken token) bool
Prevent any value modifications inside specific of WireData instance. WireDataLockToken token should be stored in some controller or responsible for modification entity. The purpose of this method is to restrict data changes only to the place where business logic or model related operations take place.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
refresh([dynamic optional]) Future<void>
remove({bool clean = false}) Future<void>
reset() Future<void>
subscribe(WireDataListener listener) WireData
toString() String
A string representation of this object.
inherited
unlock(WireDataLockToken token) bool
After calling this method with proper token WireDataLockToken changes to the WireData value will be allowed from anywhere of the system
unsubscribe([WireDataListener? listener]) WireData

Operators

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