ktoNull method

List<E>? ktoNull()

空集合转空对象

Implementation

List<E>? ktoNull() {
  var file = this;
  if (file == null || file.isEmpty) {
    return null;
  }
  return file;
}