BonfireWidget constructor

const BonfireWidget({
  1. Key? key,
  2. required GameMap map,
  3. JoystickController? joystick,
  4. Player? player,
  5. GameInterface? interface,
  6. List<Enemy>? enemies,
  7. List<GameDecoration>? decorations,
  8. GameController? gameController,
  9. GameBackground? background,
  10. bool constructionMode = false,
  11. bool showCollisionArea = false,
  12. Color? constructionModeColor,
  13. Color? collisionAreaColor,
  14. Color? lightingColorGame,
  15. Color? backgroundColor,
  16. GameColorFilter? colorFilter,
  17. List<GameComponent>? components,
  18. Map<String, OverlayWidgetBuilder<BonfireGame>>? overlayBuilderMap,
  19. List<String>? initialActiveOverlays,
  20. CameraConfig? cameraConfig,
  21. TapInGame? onTapDown,
  22. TapInGame? onTapUp,
  23. ValueChanged<BonfireGame>? onReady,
  24. FocusNode? focusNode,
  25. bool autofocus = true,
  26. MouseCursor? mouseCursor,
  27. Widget? progress,
  28. Duration delayToHideProgress = Duration.zero,
  29. Duration progressTransitionDuration = const Duration(milliseconds: 500),
  30. AnimatedSwitcherTransitionBuilder progressTransitionBuilder = AnimatedSwitcher.defaultTransitionBuilder,
  31. VoidCallback? onDispose,
})

Implementation

const BonfireWidget({
  Key? key,
  required this.map,
  this.joystick,
  this.player,
  this.interface,
  this.enemies,
  this.decorations,
  this.gameController,
  this.background,
  this.constructionMode = false,
  this.showCollisionArea = false,
  this.constructionModeColor,
  this.collisionAreaColor,
  this.lightingColorGame,
  this.backgroundColor,
  this.colorFilter,
  this.components,
  this.overlayBuilderMap,
  this.initialActiveOverlays,
  this.cameraConfig,
  this.onTapDown,
  this.onTapUp,
  this.onReady,
  this.focusNode,
  this.autofocus = true,
  this.mouseCursor,
  this.progress,
  this.delayToHideProgress = Duration.zero,
  this.progressTransitionDuration = const Duration(milliseconds: 500),
  this.progressTransitionBuilder = AnimatedSwitcher.defaultTransitionBuilder,
  this.onDispose,
}) : super(key: key);