MapStream<K, V>.typeSafe constructor

MapStream<K, V>.typeSafe([
  1. Map<K, V?>? other
])

Creates a type safe MapStream.

If other is passed then MapStream is created with the same keys and values as other.

Implementation

MapStream.typeSafe([Map<K, V?>? other])
    : this._(
        defaultMap: other == null ? {} : Map.unmodifiable(other),
        typeSafe: true,
      );