asList static method

List<String>? asList(
  1. String? source
)

Implementation

static List<String>? asList(String? source) {
  if (source == null || source.isEmpty) return null;
  final list = source.list;
  if (list.isEmpty) return null;
  return list;
}