TileGrid constructor

TileGrid({
  1. List<Vector3> position = const [],
  2. List<Rect> rects = const [],
  3. List<List<Rect>>? collisions,
  4. GridType type = GridType.manual,
  5. int height = 0,
  6. int width = 0,
})

Implementation

TileGrid({
  this.position = const [],
  List<Rect> rects = const [],
  List<List<Rect>>? collisions,
  this.type = GridType.manual,
  this.height = 0,
  this.width = 0
}){
  _rects = rects;
  this.collisions = collisions ?? List.filled(rects.length, []);
}