strings method

List<String> strings(
  1. String key
)

A list of texts at key (numbers turned into text).

Implementation

List<String> strings(String key) {
  final found = _lookup(key);
  final value = found.value;
  if (value is! List) {
    if (found.found && value != null) _report(key, 'expected a list');
    return const [];
  }
  return [for (final item in value) ?_toString(item)];
}