ZoomSettings class final

A class that encapsulates settings related to zoom behavior for cropping. It provides configuration for zoom sensitivity and whether the scale should be updated.

Constructors

ZoomSettings({required double zoomSensitivityForScale(double scale), required bool shouldUpdateScale(double scale)})
Creates an instance of ZoomSettings.
const
ZoomSettings.defaults()
A default constructor for ZoomSettings, using default functions for zoom sensitivity and scale update behavior.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shouldUpdateScale bool Function(double scale)
A function that determines whether the scale should be updated.
final
zoomSensitivityForScale double Function(double scale)
A function that calculates the zoom sensitivity based on the given scale.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited