position property

  1. @override
Offset get position
override

The position of the image in the screen given its offset after pan gestures.

Implementation

@override
Offset get position => value.position;
  1. @override
set position (Offset position)
override

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,
  );
}