pluckNotNull<T> method

List<T> pluckNotNull<T>(
  1. String key
)

Implementation

List<T> pluckNotNull<T>(String key) {
  return map((e) => e[key] as T?)
      .where((value) => value != null)
      .cast<T>()
      .toList();
}