getRenderedTiles method

  1. @override
List<TileComponent> getRenderedTiles()
override

Implementation

@override
List<TileComponent> getRenderedTiles() {
  if (_needUpdateRenderedTiles) {
    _needUpdateRenderedTiles = false;
    _renderedTiles = children.fold(
      <TileComponent>[],
      (previousValue, element) => previousValue
        ..addAll(
          (element as TileLayerComponent).getRendered(),
        ),
    );
  }
  return _renderedTiles;
}