* Minor improvements to framework documentation.

* maybePop documentation fix

* Mark some flutter_test arguments required.

Without these set, we get a crash.

* Minor correction to ListView docs
This commit is contained in:
Ian Hickson
2019-09-05 15:11:50 -07:00
committed by GitHub
parent 4b655e4b42
commit a415c76b5b
15 changed files with 88 additions and 31 deletions

View File

@@ -244,7 +244,12 @@ class CommonFinders {
///
/// If the [skipOffstage] argument is true (the default), then nodes that are
/// [Offstage] or that are from inactive [Route]s are skipped.
Finder descendant({ Finder of, Finder matching, bool matchRoot = false, bool skipOffstage = true }) {
Finder descendant({
@required Finder of,
@required Finder matching,
bool matchRoot = false,
bool skipOffstage = true,
}) {
return _DescendantFinder(of, matching, matchRoot: matchRoot, skipOffstage: skipOffstage);
}
@@ -269,7 +274,11 @@ class CommonFinders {
///
/// If the [matchRoot] argument is true then the widget(s) specified by [of]
/// will be matched along with the ancestors.
Finder ancestor({ Finder of, Finder matching, bool matchRoot = false }) {
Finder ancestor({
@required Finder of,
@required Finder matching,
bool matchRoot = false,
}) {
return _AncestorFinder(of, matching, matchRoot: matchRoot);
}