hasStyleWhere method

WidgetMatcher<SelectableText> hasStyleWhere(
  1. MatchProp<TextStyle> match
)

Expects that style of SelectableText matches the condition in match.

Example usage:

spot<SelectableText>().existsOnce().hasStyleWhere((it) => it.equals(TextStyle()));

Implementation

WidgetMatcher<SelectableText> hasStyleWhere(MatchProp<TextStyle> match) {
  return hasDiagnosticProp<TextStyle>('style', match);
}