hasStyleWhere method

Expects that style of OutlinedButton matches the condition in match.

Example usage:

spot<OutlinedButton>().existsOnce().hasStyleWhere((it) => it.equals(ButtonStyle(backgroundColor: MaterialStateProperty.all(Colors.blue))));

Implementation

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