AmChannel<T> class

to create a data channel to send and recieve data in easy way in the whole app

Constructors

AmChannel.of(dynamic route)
factory

Properties

amGet → T?
to get the last value saved to this channel
no setter
amGetPrevious → T?
to get the previous value saved to this channel (just the value before the last value)
no setter
amSend ← T
to set a value to the current channel route;
no getter
hashCode int
The hash code for this object.
no setterinherited
invokeEvents → void
no setter
route → dynamic
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addEventOnChange(dynamic event(T)) String
to add an event for On Change the current value. returns the event id.
addEventOnRecieve(dynamic event(T?)) String
to add an event for On Recieve a value. returns the event id.
delete() → void
to delete the channel for this route (to freeup memory)
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeEventOnChange(dynamic eventID) → void
to remove an event for On Change the current value.
removeEventOnRecieve(dynamic eventID) → void
to remove an event for On Recieve a value.
toString() String
A string representation of this object.
inherited

Operators

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