scale property

  1. @override
double? get scale
override

The scale factor to transform the child (image or a customChild).

Implementation

@override
double? get scale => value.scale;
  1. @override
set scale (double? scale)
override

The scale factor to transform the child (image or a customChild).

Implementation

@override
set scale(double? scale) {
  if (value.scale == scale) {
    return;
  }
  prevValue = value;
  value = PhotoViewControllerValue(
    position: position,
    scale: scale,
    rotation: rotation,
    rotationFocusPoint: rotationFocusPoint,
  );
}