void generateProperties()

in tool/icons/update_icons.dart [66:90]


void generateProperties(List<Icon> icons, String filename, String pathSegment) {
  final StringBuffer buf = StringBuffer();
  buf.writeln('# Generated file - do not edit.');
  buf.writeln();
  buf.writeln('# suppress inspection "UnusedProperty" for whole file');

  final Set<int> set = <int>{};

  for (final Icon icon in icons) {
    buf.writeln();

    if (set.contains(icon.codepoint)) {
      buf.write('# ');
    }

    buf.writeln('${icon.codepoint.toRadixString(16)}.codepoint=${icon.name}');
    buf.writeln('${icon.name}=$pathSegment/${icon.name}.png');

    set.add(icon.codepoint);
  }

  File(filename).writeAsStringSync(buf.toString());

  print('wrote $filename');
}