writeIconFile method

Future<void> writeIconFile(
  1. String path,
  2. Image image
)

Implementation

Future<void> writeIconFile(
  String path,
  Image image,
) async {
  final file = await File(path).create(recursive: true);
  await file.writeAsBytes(encodePng(image));
}