liveCells function
Every LiveCell for the --locales locales and --themes themes,
locales outer and themes inner, checked against the locales and
themes the app lists in its status.
all stands for everything the app lists. A null list leaves that side
as it is. Throws a LiveCommandException naming the app's locales or
themes when one asked for isn't among them.
Implementation
List<LiveCell> liveCells(
Map<String, Object?> status, {
List<String>? locales,
List<String>? themes,
}) {
final List<String?> languages = locales == null
? const [null]
: _chooseFrom('locale', status['locales'], locales);
final List<String?> ids = themes == null
? const [null]
: _chooseFrom('theme', status['themes'], themes);
return [
for (final String? locale in languages)
for (final String? theme in ids) LiveCell(locale: locale, theme: theme),
];
}