FakeXCameraBackend constructor
FakeXCameraBackend({
- List<
XCameraDescription> cameras = const [], - Size previewSize = const Size(1920, 1080),
- String picturePath = '/tmp/fake_picture.jpg',
- 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);