copyWith method

GameInitPayload copyWith({
  1. double? viewportWidth,
  2. double? viewportHeight,
  3. GameSafeArea? safeArea,
  4. double? keyboardInsetBottom,
  5. String? deviceJson,
  6. String? chanceStateJson,
})

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,
    );