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

fix NoSuchMethodError in filter #1685

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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