noneIfEmpty property

Option<Iterable<E>> get noneIfEmpty

Implementation

Option<Iterable<E>> get noneIfEmpty {
  return Option.from(isEmpty ? null : this);
}