optStringList method

List<String>? optStringList(
  1. String key
)

Gets the value for the given key, returns null if null or wrong type

Implementation

List<String>? optStringList(String key) {
  final value = _internalMap[key];
  if (value is List<Object?>) return value.map((e) => e.toString()).toList();

  return null;
}