GameInitPayload constructor

const GameInitPayload({
  1. required String chanceId,
  2. required String campaignId,
  3. required String campaignKey,
  4. required String skinId,
  5. required int skinVersion,
  6. String valuesJson = '{}',
  7. String? slotsJson,
  8. String surface = 'fullScreen',
  9. double viewportWidth = 0,
  10. double viewportHeight = 0,
  11. GameSafeArea safeArea = GameSafeArea.zero,
  12. double keyboardInsetBottom = 0,
  13. String colorScheme = 'light',
  14. String? fontFamily,
  15. String fontsJson = '[]',
  16. String deviceJson = '{}',
  17. 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,
});