withSelectionEnabled method

  1. @useResult
WidgetSelector<TextField> withSelectionEnabled(
  1. bool? value
)

Creates a WidgetSelector that finds all TextField where selectionEnabled equals (==) value.

Example usage:

spot<TextField>().withSelectionEnabled(true).existsOnce();

Implementation

@useResult
WidgetSelector<TextField> withSelectionEnabled(bool? value) {
  return withDiagnosticProp<bool>('selectionEnabled',
      (it) => value == null ? it.isNull() : it.equals(value));
}