whereStyle method
Creates a WidgetSelector that finds all OutlinedButton where style matches the condition.
Example usage:
spot<OutlinedButton>().whereStyle((it) => it.equals(ButtonStyle(backgroundColor: MaterialStateProperty.all(Colors.blue)))).existsOnce();
Implementation
@useResult
WidgetSelector<OutlinedButton> whereStyle(MatchProp<ButtonStyle> match) {
return withDiagnosticProp<ButtonStyle>('style', match);
}