LiveInfo constructor

LiveInfo({
  1. String liveID = '',
  2. String liveName = '',
  3. String notice = '',
  4. bool isMessageDisable = false,
  5. bool isPublicVisible = true,
  6. bool isSeatEnabled = true,
  7. bool keepOwnerOnSeat = false,
  8. int maxSeatCount = 0,
  9. TakeSeatMode seatMode = TakeSeatMode.apply,
  10. int seatLayoutTemplateID = 600,
  11. String coverURL = '',
  12. String backgroundURL = '',
  13. List<int>? categoryList,
  14. int activityStatus = 0,
  15. LiveUserInfo? liveOwner,
  16. int createTime = 0,
  17. int totalViewerCount = 0,
  18. bool isGiftEnabled = true,
  19. Map<String, String>? metaData,
})

Implementation

LiveInfo({
  this.liveID = '',
  this.liveName = '',
  this.notice = '',
  this.isMessageDisable = false,
  this.isPublicVisible = true,
  this.isSeatEnabled = true,
  this.keepOwnerOnSeat = false,
  this.maxSeatCount = 0,
  this.seatMode = TakeSeatMode.apply,
  this.seatLayoutTemplateID = 600,
  this.coverURL = '',
  this.backgroundURL = '',
  List<int>? categoryList,
  this.activityStatus = 0,
  LiveUserInfo? liveOwner,
  this.createTime = 0,
  this.totalViewerCount = 0,
  this.isGiftEnabled = true,
  Map<String, String>? metaData,
})
    : categoryList = categoryList ?? [],
      liveOwner = liveOwner ?? LiveUserInfo(),
      metaData = metaData ?? {};