generate static method

String generate({
  1. required String className,
  2. required String iconData,
  3. required String iconPack,
  4. required String iconPackExt,
})

Implementation

static String generate({
  required String className,
  required String iconData,
  required String iconPack,
  required String iconPackExt,
}) {
  var template = _template.replaceAll('%CLASS_NAME%', className.pascalCase);
  template = template.replaceFirst('%ICON_DATA_TEMPLATE%', iconData);
  template = template.replaceFirst('%ICON_PACK%', iconPack);
  template = template.replaceFirst('%ICON_PACK_EXT_TEMPLATE%', iconPackExt);

  return template;
}