channel property

MethodChannel channel

Used to communicate with the native platform.

Accessible only for testing.

Implementation

// TODO(dit) https://github.com/flutter/flutter/issues/55504 Remove this getter.
@visibleForTesting
MethodChannel get channel {
  if (_googleMapsFlutterPlatform is MethodChannelGoogleMapsFlutter) {
    return (_googleMapsFlutterPlatform as MethodChannelGoogleMapsFlutter)
        .channel(mapId);
  }
  return null;
}