PhotoViewController constructor

PhotoViewController({
  1. Offset initialPosition = Offset.zero,
  2. double initialRotation = 0.0,
  3. double? initialScale,
})

Implementation

PhotoViewController({
  Offset initialPosition = Offset.zero,
  double initialRotation = 0.0,
  double? initialScale,
})  : _valueNotifier = IgnorableValueNotifier(
        PhotoViewControllerValue(
          position: initialPosition,
          rotation: initialRotation,
          scale: initialScale,
          rotationFocusPoint: null,
        ),
      ),
      super() {
  initial = value;
  prevValue = initial;

  _valueNotifier.addListener(_changeListener);
  _outputCtrl = StreamController<PhotoViewControllerValue>.broadcast();
  _outputCtrl.sink.add(initial);
}