getMaxZoom method

Future<double> getMaxZoom()

Gets the maximum native zoom supported by the current camera.

Implementation

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