dispose method

  1. @override
void dispose({
  1. required int mapId,
})

Disposes of the current map. It can't be used afterwards!

Implementation

@override
void dispose({required int mapId}) {
  _map(mapId).dispose();
  _mapById.remove(mapId);
}