hasLeadingAndTrailingTextStyleWhere method

WidgetMatcher<ListTile> hasLeadingAndTrailingTextStyleWhere(
  1. MatchProp<TextStyle> match
)

Expects that leadingAndTrailingTextStyle of ListTile matches the condition in match.

Example usage:

spot<ListTile>().existsOnce().hasLeadingAndTrailingTextStyleWhere((it) => it.equals(TextStyle()));

Implementation

WidgetMatcher<ListTile> hasLeadingAndTrailingTextStyleWhere(
    MatchProp<TextStyle> match) {
  return hasDiagnosticProp<TextStyle>('leadingAndTrailingTextStyle', match);
}