withStyle method
Creates a WidgetSelector that finds all SelectableText where style equals (==) value
.
Example usage:
spot<SelectableText>().withStyle(TextStyle()).existsOnce();
Implementation
@useResult
WidgetSelector<SelectableText> withStyle(TextStyle? value) {
return withDiagnosticProp<TextStyle>(
'style', (it) => value == null ? it.isNull() : it.equals(value));
}