updateMultiple method

  1. @override
void updateMultiple({
  1. Offset? position,
  2. double? scale,
  3. double? rotation,
  4. Offset? rotationFocusPoint,
})
override

Update multiple fields of the state with only one update streamed.

Implementation

@override
void updateMultiple({
  Offset? position,
  double? scale,
  double? rotation,
  Offset? rotationFocusPoint,
}) {
  prevValue = value;
  value = PhotoViewControllerValue(
    position: position ?? value.position,
    scale: scale ?? value.scale,
    rotation: rotation ?? value.rotation,
    rotationFocusPoint: rotationFocusPoint ?? value.rotationFocusPoint,
  );
}