Commit db2f66aa authored by Yegor's avatar Yegor

[test] make CommonFinders constructor private to disallow extensions (#3371)

parent 27715e1d
......@@ -38,7 +38,7 @@ void testWidgets(void callback(WidgetTester widgetTester)) {
/// tester.widget(find.byType(MyWidget));
/// tester.stateOf(find.byConfig(config));
/// tester.getSize(find.byKey(new ValueKey('save-button')));
const CommonFinders find = const CommonFinders();
const CommonFinders find = const CommonFinders._();
/// Asserts that [finder] locates a widget in the test element tree.
///
......@@ -239,7 +239,7 @@ class WidgetTester {
/// Provides lightweight syntax for getting frequently used widget [Finder]s.
class CommonFinders {
const CommonFinders();
const CommonFinders._();
/// Finds [Text] widgets containing string equal to [text].
Finder text(String text) => new _TextFinder(text);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment