CropScreen.borrowed constructor

CropScreen.borrowed({
  1. required CropImageLayer layer,
  2. required ValueListenable<Matrix4> camera,
  3. required ValueChanged<Rect> setFitRect,
  4. void refitCamera({
    1. Curve? curve,
    2. Duration? duration,
    })?,
  5. DrawImageLayer? draw,
  6. EntityLayer? entities,
})

Creates the screen over the host's layer and camera.

Implementation

CropScreen.borrowed({
  required this.layer,
  required this.camera,
  required this.setFitRect,
  this.refitCamera,
  this.draw,
  this.entities,
});