MiniMap constructor

MiniMap({
  1. Key? key,
  2. required BonfireGame game,
  3. MiniMapCustomRender<Tile>? tileRender,
  4. MiniMapCustomRender<GameComponent>? componentsRender,
  5. Vector2? size,
  6. EdgeInsetsGeometry? margin,
  7. BorderRadius? borderRadius,
  8. Color? backgroundColor,
  9. BoxBorder? border,
  10. Color? tileCollisionColor,
  11. Color? tileColor,
  12. Color? playerColor,
  13. Color? enemyColor,
  14. Color? npcColor,
  15. Color? allyColor,
  16. double zoom = 1.0,
  17. 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);