hasStyle method

Expects that style of OutlinedButton equals (==) value.

Example usage:

spot<OutlinedButton>().existsOnce().hasStyle(ButtonStyle(backgroundColor: MaterialStateProperty.all(Colors.blue)));

Implementation

WidgetMatcher<OutlinedButton> hasStyle(ButtonStyle? value) {
  return hasDiagnosticProp<ButtonStyle>(
      'style', (it) => value == null ? it.isNull() : it.equals(value));
}