validate method

List<T> validate()

Returns the list if not null, otherwise returns an empty list

Implementation

List<T> validate() {
  return this ?? <T>[];
}