Command<T> class abstract

Implementers

Constructors

Command(EventBus busBinded, {String? path, int maxLen = 10})
maxLen is the call history length, at least 1.
factory

Properties

bindedBus → EventBus
no setter
hashCode → int
The hash code for this object.
no setterinherited
lastCall → (T, String?, Map<String, String>?)?
no setter
path → String?
no setter
queueLenght → int
no setter
queueLength → int
Call history length
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

execute(T data, {String? fragment, Map<String, String>? arguments}) → Future
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited
undo() → Future
Sends the PREVIOUS value from the history back to the bus (one step back). Returns null when there is nothing to roll back to (fewer than two calls).

Operators

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