noneIfEmpty property

Option<Queue<E>> get noneIfEmpty

Implementation

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