orEmptyList method Null safety

List<V> orEmptyList()

Implementation

List<V> orEmptyList() {
  if (this == null) return const [];
  return this!;
}