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