VideoCardEvent class

小视频卡片事件数据

Constructors

VideoCardEvent({required VideoCardEventType type, String? videoId, Map<String, dynamic>? data, String? error, int? errorCode, bool? isLike, bool? isSucceed, String? title, String? userName, int? commentCount, int? publishTime})
const
VideoCardEvent.fromMap(Map<String, dynamic> map)
从Map创建事件
factory

Properties

commentCount int?
评论数
final
data Map<String, dynamic>?
事件数据
final
error String?
错误信息(仅在错误事件时有值)
final
errorCode int?
错误代码(仅在错误事件时有值)
final
hashCode int
The hash code for this object.
no setterinherited
isLike bool?
是否点赞(仅在点赞事件时有值)
final
isSucceed bool?
是否成功(仅在上报事件时有值)
final
publishTime int?
发布时间
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
title String?
标题
final
type VideoCardEventType
事件类型
final
userName String?
用户名
final
videoId String?
视频ID
final

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