generate method
Implementation
Future<void> generate({required File icon}) async {
if (!icon.existsSync()) {
throw 'icon file ${icon.path} not found';
}
final image = await _decoder.decodeImageFile(icon);
await _generateFavicon(image);
await _generateIcons(image);
}