Event constructor

const Event({
  1. String? broadcasterUserId,
  2. String? broadcasterUserLogin,
  3. String? broadcasterUserName,
  4. String? categoryId,
  5. String? categoryName,
  6. bool? isMature,
  7. String? language,
  8. String? title,
  9. DateTime? followedAt,
  10. String? userId,
  11. String? userLogin,
  12. String? userName,
  13. String? tier,
  14. bool? isGift,
  15. int? total,
  16. int? cumulativeTotal,
  17. bool? isAnonymous,
  18. Message? message,
  19. int? cumulativeMonths,
  20. int? streakMonths,
  21. int? durationMonths,
  22. int? bits,
  23. String? fromBroadcasterUserId,
  24. String? fromBroadcasterUserLogin,
  25. String? fromBroadcasterUserName,
  26. String? toBroadcasterUserId,
  27. String? toBroadcasterUserLogin,
  28. String? toBroadcasterUserName,
  29. int? viewers,
  30. String? moderatorUserId,
  31. String? moderatorUserLogin,
  32. String? moderatorUserName,
  33. String? reason,
  34. DateTime? bannedAt,
  35. DateTime? endsAt,
  36. bool? isPermanent,
  37. String? id,
  38. bool? isEnabled,
  39. bool? isPaused,
  40. bool? isInStock,
  41. int? cost,
  42. String? prompt,
  43. bool? isUserInputRequired,
  44. bool? shouldRedemptionsSkipRequestQueue,
  45. dynamic cooldownExpiresAt,
  46. dynamic redemptionsRedeemedCurrentStream,
  47. MaxPerPerStream? maxPerStream,
  48. MaxPerPerStream? maxPerUserPerStream,
  49. GlobalCooldown? globalCooldown,
  50. String? backgroundColor,
  51. Image? image,
  52. Image? defaultImage,
  53. String? userInput,
  54. String? status,
  55. Reward? reward,
  56. DateTime? redeemedAt,
  57. List<Choice>? choices,
  58. TsVoting? bitsVoting,
  59. TsVoting? channelPointsVoting,
  60. DateTime? startedAt,
  61. List<Outcome>? outcomes,
  62. DateTime? locksAt,
  63. int? progress,
  64. int? goal,
  65. List<Contribution>? topContributions,
  66. Contribution? lastContribution,
  67. int? level,
  68. DateTime? expiresAt,
  69. DateTime? endedAt,
  70. DateTime? cooldownEndsAt,
  71. String? campaignId,
  72. String? charityName,
  73. String? charityDescription,
  74. String? charityWebsite,
  75. Amount? amount,
  76. String? broadcasterId,
  77. String? broadcasterName,
  78. String? broadcasterLogin,
  79. Amount? currentAmount,
  80. Amount? targetAmount,
  81. String? stoppedAt,
  82. int? viewerCount,
  83. DateTime? targetCooldownEndsAt,
  84. String? type,
  85. String? description,
  86. bool? isAchieved,
  87. String? email,
  88. bool? emailVerified,
})

Implementation

const factory Event({
  String? broadcasterUserId,
  String? broadcasterUserLogin,
  String? broadcasterUserName,
  String? categoryId,
  String? categoryName,
  bool? isMature,
  String? language,
  String? title,
  DateTime? followedAt,
  String? userId,
  String? userLogin,
  String? userName,
  String? tier,
  bool? isGift,
  int? total,
  int? cumulativeTotal, // null if anonymous or not shared by the user
  bool? isAnonymous,
  Message? message,
  int? cumulativeMonths,
  int? streakMonths, // null if not shared
  int? durationMonths,
  int? bits,
  String? fromBroadcasterUserId,
  String? fromBroadcasterUserLogin,
  String? fromBroadcasterUserName,
  String? toBroadcasterUserId,
  String? toBroadcasterUserLogin,
  String? toBroadcasterUserName,
  int? viewers,
  String? moderatorUserId,
  String? moderatorUserLogin,
  String? moderatorUserName,
  String? reason,
  DateTime? bannedAt,
  DateTime? endsAt,
  bool? isPermanent,
  String? id,
  bool? isEnabled,
  bool? isPaused,
  bool? isInStock,
  int? cost,
  String? prompt,
  bool? isUserInputRequired,
  bool? shouldRedemptionsSkipRequestQueue,
  dynamic? cooldownExpiresAt,
  dynamic? redemptionsRedeemedCurrentStream,
  MaxPerPerStream? maxPerStream,
  MaxPerPerStream? maxPerUserPerStream,
  GlobalCooldown? globalCooldown,
  String? backgroundColor,
  Image? image,
  Image? defaultImage,
  String? userInput,
  String? status,
  Reward? reward,
  DateTime? redeemedAt,
  List<Choice>? choices,
  TsVoting? bitsVoting,
  TsVoting? channelPointsVoting,
  DateTime? startedAt,
  List<Outcome>? outcomes,
  DateTime? locksAt,
  int? progress,
  int? goal,
  List<Contribution>? topContributions,
  Contribution? lastContribution,
  int? level,
  DateTime? expiresAt,
  DateTime? endedAt,
  DateTime? cooldownEndsAt,
  String? campaignId,
  String? charityName,
  String? charityDescription,
  String? charityLogo,
  String? charityWebsite,
  Amount? amount,
  String? broadcasterId,
  String? broadcasterName,
  String? broadcasterLogin,
  Amount? currentAmount,
  Amount? targetAmount,
  String? stoppedAt,
  int? viewerCount,
  DateTime? targetCooldownEndsAt,
  String? type,
  String? description,
  bool? isAchieved,
  String? email,
  bool? emailVerified,
}) = _Event;