within method

bool within(
  1. Iterable<String> allowed
)

Whether every read lies within allowed; never when whole.

Implementation

bool within(Iterable<String> allowed) {
  if (whole) return false;
  final names = allowed.toSet();
  return fields.every(names.contains);
}