compact method

List<T?>? compact()

Implementation

List<T?>? compact() {
  removeWhere((element) => isFalsey(element));
  return this;
}