GameInitPayload constructor
const
GameInitPayload({
- required String chanceId,
- required String campaignId,
- required String campaignKey,
- required String skinId,
- required int skinVersion,
- String valuesJson = '{}',
- String? slotsJson,
- String surface = 'fullScreen',
- double viewportWidth = 0,
- double viewportHeight = 0,
- GameSafeArea safeArea = GameSafeArea.zero,
- double keyboardInsetBottom = 0,
- String colorScheme = 'light',
- String? fontFamily,
- String fontsJson = '[]',
- String deviceJson = '{}',
- String? chanceStateJson,
Implementation
const GameInitPayload({
required this.chanceId,
required this.campaignId,
required this.campaignKey,
required this.skinId,
required this.skinVersion,
this.valuesJson = '{}',
this.slotsJson,
this.surface = 'fullScreen',
this.viewportWidth = 0,
this.viewportHeight = 0,
this.safeArea = GameSafeArea.zero,
this.keyboardInsetBottom = 0,
this.colorScheme = 'light',
this.fontFamily,
this.fontsJson = '[]',
this.deviceJson = '{}',
this.chanceStateJson,
});