FakeImagePickerPlatform constructor

FakeImagePickerPlatform()

Creates a FakeImagePickerPlatform with a default 1x1 test PNG written to a temp file.

Implementation

FakeImagePickerPlatform() {
  final tempFile = File(
    '${Directory.systemTemp.path}/fake_image_picker_test.png',
  )..writeAsBytesSync(_testPngBytes);
  imageToReturn = XFile(tempFile.path, name: 'test_image.png');
}