setTransform method
Sets the transform.
Implementation
void setTransform(ZoomTransform transform) {
final clampedScale = transform.scale.clamp(minScale, maxScale);
_transform = transform.copyWith(scale: clampedScale);
notifyListeners();
}
Sets the transform.
void setTransform(ZoomTransform transform) {
final clampedScale = transform.scale.clamp(minScale, maxScale);
_transform = transform.copyWith(scale: clampedScale);
notifyListeners();
}