toList<T> static method

List<T> toList<T>(
  1. dynamic d,
  2. List<T> def
)

Converts to not-nullable list

Implementation

static List<T> toList<T>(dynamic d, List<T> def) {
  return toListN(d) ?? def;
}