position property
The position of the image in the screen given its offset after pan gestures.
Implementation
@override
Offset get position => value.position;
The position of the image in the screen given its offset after pan gestures.
Implementation
@override
set position(Offset position) {
if (value.position == position) {
return;
}
prevValue = value;
value = PhotoViewControllerValue(
position: position,
scale: scale,
rotation: rotation,
rotationFocusPoint: rotationFocusPoint,
);
}