Washington class

Global event dispatcher and state uniter.

Use Washington to globally dispatch events to all instantiated UnitedStates.

You can also add listeners to receive the events that are being dispatched.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addListener(EventCallback listener) → void
Add a listener.
dispatch(Object event) → void
Dispatch an event to all listeners.
feedInstance(Washington instance) → void
Feed an instance to be used by Washington.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeListener(EventCallback listener) → void
Remove a listener.
reset() → void
Reset Washington by clearing all listeners and the instance.
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

dc Washington
Get the global instance of Washington.
no setter
i Washington
Get the global instance of Washington.
no setter
instance Washington
Get the global instance of Washington.
no setter