list method
comma separated: a, b,c is ['a', 'b', 'c']. Empty items are dropped.
Only commas (,) counts as missing, so the default is used.
Implementation
List<String>? list(String key) {
String? value = raw(key);
if (value == null) return null;
List<String> result = <String>[];
for (String item in value.split(',')) {
String text = item.trim();
if (text.isNotEmpty) result.add(text);
}
return result.isEmpty ? null : result;
}