diff --git a/packages/flutter_test/lib/src/finders.dart b/packages/flutter_test/lib/src/finders.dart index 610b638d04..3b3a7ffe31 100644 --- a/packages/flutter_test/lib/src/finders.dart +++ b/packages/flutter_test/lib/src/finders.dart @@ -107,7 +107,7 @@ class CommonFinders { /// /// Example: /// - /// expect(tester, hasWidget(find.byWidgetPredicate( + /// expect(tester, hasWidget(find.byElementPredicate( /// // finds elements of type SingleChildRenderObjectElement, including /// // those that are actually subclasses of that type. /// // (contrast with byElementType, which only returns exact matches)