$reified property

  1. @override
Iterator<E> get $reified
override

Fully reify the underlying value so it can be used in a Dart context. For example, recursively transform collections into their underlying $values.

Implementation

@override
Iterator<E> get $reified {
  // iterate through the iterator and map to $value
  final values = <E>[];
  while ($value.moveNext()) {
    values.add(($value.current as $Value).$value);
  }
  return values.iterator;
}