setZoomLimits static method
Sets the minimum and maximum zoom bounds of the current viewer.
The mode
defines how the min and max zoom bounds are used, and is given
by one of the ZoomLimitMode constants. If set to ZoomLimitMode.Relative,
1.0 is defined as the zoom level where the document is displayed in page
fit mode.
Implementation
static Future<void> setZoomLimits(
String mode, double minimum, double maximum) {
return _channel.invokeMethod(Functions.setZoomLimits, <String, dynamic>{
'zoomLimitMode': mode,
'minimum': minimum,
'maximum': maximum,
});
}