ContentEvent class
内容事件基类
- Implementers
Constructors
-
ContentEvent({required String action, required String contentId, required int timestamp, Map<
String, dynamic> ? extra}) -
const
-
ContentEvent.fromMap(Map<
String, dynamic> map) -
从Map创建事件对象
factory
Properties
- action → String
-
事件动作
final
- contentId → String
-
内容ID
final
-
data
→ Map<
String, dynamic> -
事件数据(组合所有相关数据)
no setter
-
extra
→ Map<
String, dynamic> ? -
额外数据
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- timestamp → int
-
时间戳
final
- type → String
-
事件类型(别名:action)
no setter
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> - 转换为Map
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited