defaults static method

The default categories (ReasonCategory.defaults) with the labels of strings (LimeniaUiStrings.categoryLabels).

Implementation

static List<ReportCategoryOption> defaults(LimeniaUiStrings strings) => [
      for (final code in ReasonCategory.defaults)
        ReportCategoryOption(code: code, label: strings.categoryLabels[code] ?? code),
    ];