generatePrefKeysClass method

void generatePrefKeysClass(
  1. StringBuffer strBuffer,
  2. String className,
  3. List<FieldInfo> fields
)

Implementation

void generatePrefKeysClass(
    StringBuffer strBuffer, String className, List<FieldInfo> fields) {
  strBuffer.writeln('class _PrefKeysFor$className {');
  strBuffer.writeln(' const _PrefKeysFor$className();');
  for (final field in fields) {
    strBuffer.writeln("final String ${field.name} = '${field.name}';");
  }
  strBuffer.writeln('}');
  strBuffer.writeln();
}