close method

  1. @override
void close(
  1. int idOSM
)

Implementation

@override
void close(int idOSM) {
  // mapsController.values.forEach(
  //         (WebTestController mapsController) => mapsController.dispose());
  //_streamController.close();
  mapsController.remove(idOSM);
  _channels.remove(idOSM);
  if (mapsController.isNotEmpty) {
    map = mapsController.values.last;
    mapId = mapsController.keys.last;
  }
}