Skip to content

Commit

Permalink
Update usage
Browse files Browse the repository at this point in the history
  • Loading branch information
mgenware committed Dec 2, 2023
1 parent 69cdf10 commit a07c457
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,11 @@
# immutable_ordered_map

A dart implementation of Immutable ordered map. A port of [orderedmap](https://github.com/marijnh/orderedmap).

## Usage

Refer to the [original repo](https://github.com/marijnh/orderedmap) 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).

0 comments on commit a07c457

Please sign in to comment.