FakeXCameraBackend constructor

FakeXCameraBackend({
  1. List<XCameraDescription> cameras = const [],
  2. Size previewSize = const Size(1920, 1080),
  3. String picturePath = '/tmp/fake_picture.jpg',
  4. String videoPath = '/tmp/fake_video.mp4',
})

Binds the cameras this backend reports and the canned results its capture calls return.

Implementation

FakeXCameraBackend({
  List<XCameraDescription> cameras = const [],
  this.previewSize = const Size(1920, 1080),
  this.picturePath = '/tmp/fake_picture.jpg',
  this.videoPath = '/tmp/fake_video.mp4',
}) : cameras = List.unmodifiable(cameras);