compactEmpty static method

List<String> compactEmpty(
  1. Iterable<String?>? list
)

Implementation

static List<String> compactEmpty(Iterable<String?>? list) =>
    [...?list?.whereType<String>().where((item) => item.isNotEmpty)];