immutable_ordered_map 1.0.0 copy "immutable_ordered_map: ^1.0.0" to clipboard
immutable_ordered_map: ^1.0.0 copied to clipboard

A dart implementation of Immutable ordered map

pub package Build Status

immutable_ordered_map #

A dart implementation of Immutable ordered map. A port of orderedmap.

Usage #

Refer to the original repo for usage. There are some breaking changes though:

  • The original OrderedMap is renamed to ImmutableOrderedMap for clarity.
  • ImmutableOrderedMap is now a generic class with two type parameters: K and V.
  • The original OrderedMap.toObject is renamed to ImmutableOrderedMap.toMap (Dart doesn't have a map-like Object type, use Map<T, V> instead).