getEntries method

DftMap getEntries(
  1. Iterable<String> terms
)

Filters the DftMap by terms.

Returns a subset of the DftMap instance that only contains entries with a key in the terms collection.

Implementation

DftMap getEntries(Iterable<String> terms) {
  final DftMap retVal = {}
    ..addEntries(entries.where((element) => terms.contains(element.key)));
  return retVal;
}