copyWith method
Implementation
GameInitPayload copyWith({
double? viewportWidth,
double? viewportHeight,
GameSafeArea? safeArea,
double? keyboardInsetBottom,
String? deviceJson,
String? chanceStateJson,
}) =>
GameInitPayload(
chanceId: chanceId,
campaignId: campaignId,
campaignKey: campaignKey,
skinId: skinId,
skinVersion: skinVersion,
valuesJson: valuesJson,
slotsJson: slotsJson,
surface: surface,
viewportWidth: viewportWidth ?? this.viewportWidth,
viewportHeight: viewportHeight ?? this.viewportHeight,
safeArea: safeArea ?? this.safeArea,
keyboardInsetBottom: keyboardInsetBottom ?? this.keyboardInsetBottom,
colorScheme: colorScheme,
fontFamily: fontFamily,
fontsJson: fontsJson,
deviceJson: deviceJson ?? this.deviceJson,
chanceStateJson: chanceStateJson ?? this.chanceStateJson,
);