toOptions method

Iterable<Option<T>> toOptions()

Implementation

@pragma("vm:prefer-inline")
Iterable<Option<T>> toOptions() {
  return map((nullable) => Option.of(nullable));
}