Localizations.fromSection constructor Null safety

Localizations.fromSection(
  1. {required List<String> supportedLanguageCodes,
  2. required String name,
  3. required Section section}
)

Implementation

factory Localizations.fromSection({
  required List<String> supportedLanguageCodes,
  required String name,
  required Section section,
}) =>
    Localizations(
      supportedLanguageCodes: supportedLanguageCodes,
      name: name,
      children: section.children,
      labels: section.labels,
    );