generate method

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

Implementation

Future<void> generate({
  required File iconFile,
}) async {
  if (!iconFile.existsSync()) {
    throw 'icon file ${iconFile.path} not found';
  }
  final icon = await _decoder.decodeImageFile(iconFile);
  await _writeImageFromTemplates(icon, iconTemplates);
}