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