channel method

MethodChannel channel(
  1. int mapId
)

Accesses the MethodChannel associated to the passed mapId.

Implementation

MethodChannel channel(int mapId) {
  final MethodChannel? channel = _channels[mapId];
  if (channel == null) {
    throw UnknownMapIDError(mapId);
  }
  return channel;
}