getMaxZoom method

  1. @override
Future<double> getMaxZoom()
override

Gets the maximum supported zoom level.

Implementation

@override
Future<double> getMaxZoom() async {
  try {
    final double? max = await methodChannel.invokeMethod<double>('getMaxZoom');
    return max ?? 1.0;
  } on PlatformException {
    return 1.0;
  } on MissingPluginException {
    return 1.0;
  }
}