byNames method

Iterable<T> byNames(
  1. Iterable<String> names
)

Implementation

Iterable<T> byNames(Iterable<String> names) => [
      for (final i in this)
        for (final name in names)
          if (i.name == name) i,
    ];