asList method

List<T> asList()

Implementation

List<T> asList() {
  if (this == null) return [];
  return [if (this != null) this];
}