DrawScreen.borrowed constructor

DrawScreen.borrowed({
  1. required DrawImageLayer layer,
  2. required ValueListenable<Matrix4> camera,
  3. required ValueChanged<Rect> setFitRect,
  4. CropImageLayer? crop,
  5. EntityLayer? entities,
})

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

Implementation

DrawScreen.borrowed({
  required this.layer,
  required this.camera,
  required this.setFitRect,
  this.crop,
  this.entities,
});