Skip to content
This repository has been archived by the owner on Oct 22, 2024. It is now read-only.

Fix typo in expandIndexed #160

Merged
merged 3 commits into from
Oct 27, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 1.15.0-nullsafety.5

* Fix typo in extension method `expandIndexed`.

## 1.15.0-nullsafety.4

* Allow prerelease versions of the `2.12.x` sdk.
Expand Down
2 changes: 1 addition & 1 deletion lib/src/list_extensions.dart
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ extension ListExtensions<E> on List<E> {
///
/// Like [Iterable.expand] except that the callback function is supplied with
/// both the index and the element.
Iterable<R> expendIndexed<R>(
Iterable<R> expandIndexed<R>(
Iterable<R> Function(int index, E element) expand) sync* {
for (var index = 0; index < length; index++) {
yield* expand(index, this[index]);
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: collection
version: 1.15.0-nullsafety.4
version: 1.15.0-nullsafety.5

description: Collections and utilities functions and classes related to collections.
homepage: https://www.github.com/dart-lang/collection
Expand Down