names property

List<String> names
latefinal

The names of every theme: light and dark, then the others in alphabetical order (property sources, imported files included, have no meaningful order).

Implementation

late final List<String> names = List.unmodifiable([
  'light',
  'dark',
  ...[
    for (final name in _own.keys)
      if (name != 'light' && name != 'dark') name,
  ]..sort(),
]);