Event<T> class

刷新页面通知

Constructors

Event.new({required String key, T? data})
const
Event.empty({required String key})
const

Properties

data → T?
数据
final
hashCode int
The hash code for this object.
no setteroverride
key String
事件类型
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

clone(T data) Event<T>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
事件由来决定 可以相同则代表同一类事件
override