EventEmitter class Null safety

事件映射函数分发监听功能类

Constructors

EventEmitter()

Properties

hashCode int
The hash code for this object.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

emit(String name, dynamic event) Future<void>
发出事件触发
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
off(String name) → void
取消监听
on(String name, EventListener listener, {int? limit}) → void
持久化监听
once(String name, EventListener listener) → void
只执行一次
toString() String
A string representation of this object.
inherited

Operators

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