Skip to content

Commit

Permalink
Fix wrong documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
simc committed Sep 13, 2018
1 parent 368147b commit 25fe500
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
14 changes: 10 additions & 4 deletions README.md
Expand Up @@ -86,7 +86,7 @@ var equals1 = list.contentEquals(['some', 'items']); // true
var equals2 = list.contentEquals(['SOME', 'items']); // false
```

## sortBy & thenBy
## sortedBy & thenBy
Sort lists by multiple properties
```dart
class Dog {
Expand All @@ -104,7 +104,7 @@ dogs.add(Dog("Cookie", 4));
dogs.add(Dog("Bark", 1));
var sorted = dogs
.sortBy((dog) => dog.name)
.sortedBy((dog) => dog.name)
.thenByDescending((dog) => dog.age);
// Bark, Cookie, Charlie (7), Charlie (2), Tom
```
Expand Down Expand Up @@ -149,8 +149,8 @@ There is no need to work with the unwrapped classes. The wrapper classes have
the exact same performance as their native counterparts.

**Important:** Always remember that `$List`, `$Iterable` and `$Map` are wrappers.
`$List` for example doesn't create a new list. This means if you remove an item
from a `$List`, it will also be removed from the source list.
This means if you remove an item from a `$List`, it will also be removed from
the source list.
```dart
var source = [0, 1, 2, 3];
Expand All @@ -164,6 +164,12 @@ independantList.add(5);
```


# Features and bugs

Please file feature requests and bugs at the
[issue tracker][https://github.com/leisim/superpower/issues].


# Todo 鉁忥笍
- 鉁旓笍 most important features for collections
- 鉁旓笍 superpowers for Map
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
@@ -1,7 +1,7 @@
name: superpower
version: 0.3.0
author: Simon Leier <simonleier@gmail.com>
description: "Lists, Iterables and Maps on steroids! 馃 Extends Lists with negative indices, sortBy(), groupBy(), distinct(), slice(), flatten() etc. Inspired by Kotlin."
description: "Lists, Iterables and Maps on steroids! 馃 Extends Lists with negative indices, sortedBy(), groupBy(), distinct(), slice(), flatten() etc. Inspired by Kotlin."
homepage: https://github.com/leisim/superpower
environment:
sdk: '>=2.0.0-dev.28.0 <3.0.0'
Expand Down

0 comments on commit 25fe500

Please sign in to comment.