whereInherit method

  1. @useResult
WidgetSelector<AnyText> whereInherit(
  1. MatchProp<bool> match
)

Creates a WidgetSelector that finds all AnyText where inherit matches the condition.

Example usage:

spot<AnyText>().whereInherit((it) => it.isTrue()).existsOnce();

Implementation

@useResult
WidgetSelector<AnyText> whereInherit(MatchProp<bool> match) {
  return withDiagnosticProp<bool>('inherit', match);
}