docs(flutter_test): fix mention of non-existing matchesSemanticsNode (#99659)

This commit is contained in:
Harsh Bhikadia 2022-03-17 07:25:18 +05:30 committed by GitHub
parent 95276ccc82
commit fece72cac7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -477,7 +477,7 @@ AsyncMatcher matchesReferenceImage(ui.Image image) {
///
/// ```dart
/// final SemanticsHandle handle = tester.ensureSemantics();
/// expect(tester.getSemantics(find.text('hello')), matchesSemanticsNode(label: 'hello'));
/// expect(tester.getSemantics(find.text('hello')), matchesSemantics(label: 'hello'));
/// handle.dispose();
/// ```
///