LiveEvent constructor

LiveEvent({
  1. required LiveEventType type,
  2. int? timestamp,
  3. int? ts,
  4. String? broadcastId,
  5. String? userId,
  6. List<CommentUserBadgeInfo> badges = const [],
  7. UserNotification? notification,
  8. PubSubVote? vote,
  9. PubSubComment? comment,
  10. FeedPost? feedPost,
  11. LiveEventExtraInfo? extraInfo,
  12. Object? config,
  13. bool? isClosed,
  14. List<String> uj = const [],
  15. List<String> ul = const [],
  16. int? sc,
  17. Map<String, int> changes = const {},
})

Returns a new LiveEvent instance.

Implementation

LiveEvent({
  required this.type,
  this.timestamp,
  this.ts,
  this.broadcastId,
  this.userId,
  this.badges = const [],
  this.notification,
  this.vote,
  this.comment,
  this.feedPost,
  this.extraInfo,
  this.config,
  this.isClosed,
  this.uj = const [],
  this.ul = const [],
  this.sc,
  this.changes = const {},
});