getCategory method

Map<String, String> getCategory(
  1. String category
)

Retourne les paires clé -> valeur d'une catégorie, dans l'ordre d'insertion (vide si la catégorie n'existe pas).

Implementation

Map<String, String> getCategory(String category) {
  final tokens = _categories[category];
  if (tokens == null) return const {};
  return {for (final t in tokens.values) t.key: t.value};
}