BonfireWidget constructor
const
BonfireWidget({
- Key? key,
- required GameMap map,
- JoystickController? joystick,
- Player? player,
- GameInterface? interface,
- List<
Enemy> ? enemies, - List<
GameDecoration> ? decorations, - GameController? gameController,
- GameBackground? background,
- bool constructionMode = false,
- bool showCollisionArea = false,
- Color? constructionModeColor,
- Color? collisionAreaColor,
- Color? lightingColorGame,
- Color? backgroundColor,
- GameColorFilter? colorFilter,
- List<
GameComponent> ? components, - Map<
String, OverlayWidgetBuilder< ? overlayBuilderMap,BonfireGame> > - List<
String> ? initialActiveOverlays, - CameraConfig? cameraConfig,
- TapInGame? onTapDown,
- TapInGame? onTapUp,
- ValueChanged<
BonfireGame> ? onReady, - FocusNode? focusNode,
- bool autofocus = true,
- MouseCursor? mouseCursor,
- Widget? progress,
- Duration delayToHideProgress = Duration.zero,
- Duration progressTransitionDuration = const Duration(milliseconds: 500),
- AnimatedSwitcherTransitionBuilder progressTransitionBuilder = AnimatedSwitcher.defaultTransitionBuilder,
- 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);