Index: pkg/intl/lib/src/date_format_field.dart |
diff --git a/pkg/intl/lib/src/date_format_field.dart b/pkg/intl/lib/src/date_format_field.dart |
index 93e7e42816aab14b986c87c660de3b6bdb9bf652..489e4f8617da92491b31b4b6f32ad7e5b8bac5d9 100644 |
--- a/pkg/intl/lib/src/date_format_field.dart |
+++ b/pkg/intl/lib/src/date_format_field.dart |
@@ -222,7 +222,7 @@ class _DateFormatPatternField extends _DateFormatField { |
if (results.isEmpty) throwFormatException(input); |
results.sort( |
(a, b) => possibilities[a].length.compareTo(possibilities[b].length)); |
- var longestResult = results.last(); |
+ var longestResult = results.last; |
input.read(possibilities[longestResult].length); |
return longestResult; |
} |