We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 889132a commit b43f26cCopy full SHA for b43f26c
test/wrapper_test.dart
@@ -50,7 +50,7 @@ abstract class Expector {
50
// Parameterization of noSuchMethod. Calls [_action] on every
51
// member invocation.
52
class InvocationChecker {
53
- Invocation _expected;
+ final Invocation _expected;
54
InvocationChecker(this._expected);
55
noSuchMethod(Invocation actual) {
56
testInvocations(_expected, actual);
@@ -399,8 +399,7 @@ void main() {
399
expect(
400
set.where((element) => element.startsWith("f")), equals(["foo"]));
401
expect(set.where((element) => element.startsWith("z")), equals([]));
402
- expect(
403
- set.where((element) => element is String), equals(["foo", "bar"]));
+ expect(set.whereType<String>(), equals(["foo", "bar"]));
404
});
405
406
test(".containsAll", () {
0 commit comments