filteredMap method Null safety

FilteredMap<K, V> filteredMap(
  1. {required Pair start,
  2. required Pair end,
  3. int? limit,
  4. bool reversed = false}
)

Creates a filtered map based on this map.

Implementation

FilteredMap<K, V> filteredMap(
        {required Pair start,
        required Pair end,
        int? limit,
        bool reversed = false}) =>
    FilteredMap(Filter(
        validInterval: KeyValueInterval.fromPairs(start, end),
        ordering: ordering,
        limit: limit,
        reversed: reversed))
      ..addAll(this);