build method Null safety

String build(
  1. Localizations localizations
)

Implementation

String build(Localizations localizations) {
  _buffer = StringBuffer();

  _createLocalization(
    [
      localizations.name,
    ],
    localizations,
  );
  localizations.categories.forEach((c) => _addCategoryDefinition(c));
  _addSectionDefinition(
    [
      localizations.name,
    ],
    localizations,
  );
  return DartFormatter().format(_buffer.toString());
}