getZoomRatios method

Future<List<int>> getZoomRatios()

Gets the zoom ratios of all zoom values.

Applications should check isZoomSupported before using this method.

Returns the zoom ratios in 1/100 increments. Ex: a zoom of 3.2x is returned as 320. The number of elements is getMaxZoom + 1. The list is sorted from small to large. The first element is always 100. The last element is the zoom ratio of the maximum zoom value.

Implementation

Future<List<int>> getZoomRatios() async {
  final List<Object?> zoomRatios =
      await _channel.$getZoomRatios(this) as List<Object?>;
  return zoomRatios.cast<int>();
}