Skip to content
This repository was archived by the owner on May 11, 2021. It is now read-only.

fix NoSuchMethodError in filter #1

Closed
wants to merge 1 commit into from
Closed
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
3 changes: 3 additions & 0 deletions lib/formatter/filter.dart
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,9 @@ class Filter implements Function {
}

List call(List items, var expression, [var comparator]) {
if (items == null) {
return const [];
}
if (expression == null) {
return items.toList(growable: false); // Missing expression → passthrough.
} else if (expression is! Map && expression is! Function &&
Expand Down