hasStyle method
Expects that style of SelectableText equals (==) value
.
Example usage:
spot<SelectableText>().existsOnce().hasStyle(TextStyle());
Implementation
WidgetMatcher<SelectableText> hasStyle(TextStyle? value) {
return hasDiagnosticProp<TextStyle>(
'style', (it) => value == null ? it.isNull() : it.equals(value));
}