TTEvent<T, U, V> class

Generic event/listener system

Constructors

TTEvent({required String name})

Properties

hashCode int
The hash code for this object.
no setterinherited
mut → Mutex
final
name String
latefinal
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

listenerCount() num
@returns number of currently subscribed listeners
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
off(EventCb<T, U, V> cb) TTEvent<T, U, V>
Unregister a listener on this event @param cb the callback to unsubscribe
on(EventCb<T, U, V> cb) TTEvent<T, U, V>
Register a listener on this event
reset() TTEvent<T, U, V>
Unregister all listeners on this event
toString() String
A string representation of this object.
inherited
trigger(T a, [U? b, V? c]) TTEvent<T, U, V>
Trigger this event

Operators

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