iter method

Iter<T> iter()

Returns an Iter over the possibly contained value.

Implementation

@pragma("vm:prefer-inline")
Iter<T> iter() {
  if (v == null) {
    return Iter(<T>[].iterator);
  } else {
    return Iter([v!].iterator);
  }
}