tileByLocalId method

Tile? tileByLocalId(
  1. String tileSetName,
  2. int localId
)

Implementation

Tile? tileByLocalId(String tileSetName, int localId) {
  final tileset = tilesetByName(tileSetName);
  return tileset.tiles.firstWhereOrNull(
    (element) => element.localId == localId,
  );
}