castIterable method

Iterable? castIterable(
  1. Iterable itr,
  2. Type type
)

Implementation

Iterable? castIterable(Iterable itr, Type type) {
  if (type == this.type) {
    return itr.cast<O>();
  }
  return null;
}