Event constructor
const
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,
- bool? isAnonymous,
- Message? message,
- int? cumulativeMonths,
- int? streakMonths,
- 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,
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;