HostMapMessageHandler constructor

HostMapMessageHandler(
  1. int mapId,
  2. StreamController<MapEvent<Object?>> streamController, {
  3. required TileOverlay? tileOverlayProvider(
    1. TileOverlayId tileOverlayId
    ),
})

Creates a new handler that listens for events from map mapId, and broadcasts them to streamController.

Implementation

HostMapMessageHandler(
  this.mapId,
  this.streamController, {
  required this.tileOverlayProvider,
}) {
  MapsCallbackApi.setUp(this, messageChannelSuffix: mapId.toString());
}