writeAsJpeg method Null safety
- String filePath
Write the image as a jpeg to the specified destination.
Implementation
Future<void> writeAsJpeg(String filePath) async =>
File(filePath).writeAsBytes(img.encodeJpg(_decodedBytes!));
Write the image as a jpeg to the specified destination.
Future<void> writeAsJpeg(String filePath) async =>
File(filePath).writeAsBytes(img.encodeJpg(_decodedBytes!));