MiniMap constructor
MiniMap({
- Key? key,
- required BonfireGame game,
- MiniMapCustomRender<
Tile> ? tileRender, - MiniMapCustomRender<
GameComponent> ? componentsRender, - Vector2? size,
- EdgeInsetsGeometry? margin,
- BorderRadius? borderRadius,
- Color? backgroundColor,
- BoxBorder? border,
- Color? tileCollisionColor,
- Color? tileColor,
- Color? playerColor,
- Color? enemyColor,
- Color? npcColor,
- Color? allyColor,
- double zoom = 1.0,
- Color? decorationColor,
Implementation
MiniMap({
Key? key,
required this.game,
this.tileRender,
this.componentsRender,
Vector2? size,
this.margin,
this.borderRadius,
this.backgroundColor,
this.border,
this.tileCollisionColor,
this.tileColor,
this.playerColor,
this.enemyColor,
this.npcColor,
this.allyColor,
this.zoom = 1.0,
this.decorationColor,
}) : size = size ?? Vector2(200, 200),
super(key: key);