withSelectionColor method
Creates a WidgetSelector that finds all AnyText where selectionColor equals (==) value
.
Example usage:
spot<AnyText>().withSelectionColor(Colors.red).existsOnce();
Implementation
@useResult
WidgetSelector<AnyText> withSelectionColor(Color? value) {
return withDiagnosticProp<Color>('selectionColor',
(it) => value == null ? it.isNull() : it.equals(value));
}