generate method

Future<void> generate({
  1. required File icon,
})

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);
}