GlobalSignal<V> class
Global signal is a signal that sign to all same type generic global slots. Global signal stored by generic types. And can be create only once.
If you want to create a new instance dispose the old before creating new.
Constructors
- GlobalSignal.new(V value)
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasSlots → bool
-
Has slot
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
slots
→ Set<
Slot> -
Slots
finalinherited
- value ↔ V
-
Your value.
If you use as a setter notify listeners
getter/setter pairinherited
Methods
-
addSlot(
Slot< V> slot) → void -
Add new slot
inherited
-
clearSlots(
) → void -
Clear all slots
inherited
-
combineWith(
List< Signal> signals) → Signal -
Listen any changes this and
notifiers
any changesinherited -
convert<
T> (T map(V)) → Signal< T> -
Map signal
inherited
-
emit(
) → void -
Sign to all slots
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
registerSignal(
) → void -
removeSlot(
Slot< V> slot) → void -
Remove slot
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
unregisterSignal(
) → void - Dispose and unregister the signal from global signal controller.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited