removeTile method

void removeTile(
  1. String id
)

Implementation

void removeTile(String id) {
  try {
    _tiles.removeWhere((element) => element.id == id);
    _quadTree?.removeById(id);
    _updateSizeAndPosition();
    refresh();
  } catch (e) {
    // ignore: avoid_print
    print('Not found visible tile with $id id');
  }
}