toListN<T> static method

List<T>? toListN<T>(
  1. dynamic d
)

Converts to nullable list

Implementation

static List<T>? toListN<T>(dynamic d) {
  return d is List<T> ? d : null;
}