emptyAsNull property

List<T>? get emptyAsNull

Implementation

List<T>? get emptyAsNull => isEmpty ? null : this;