descendantTextContaining method

Finder descendantTextContaining({
  1. required Finder of,
  2. required Pattern pattern,
  3. bool matchRoot = false,
  4. bool findRichText = false,
  5. bool skipOffstage = true,
})

Implementation

Finder descendantTextContaining({
  required Finder of,
  required Pattern pattern,
  bool matchRoot = false,
  bool findRichText = false,
  bool skipOffstage = true,
}) {
  return find.descendant(
    of: of,
    matching: find.textContaining(
      pattern,
      findRichText: findRichText,
      skipOffstage: skipOffstage,
    ),
    matchRoot: matchRoot,
    skipOffstage: skipOffstage,
  );
}