hasSelectionEnabled method

WidgetMatcher<TextField> hasSelectionEnabled(
  1. bool? value
)

Expects that selectionEnabled of TextField equals (==) value.

Example usage:

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

Implementation

WidgetMatcher<TextField> hasSelectionEnabled(bool? value) {
  return hasDiagnosticProp<bool>('selectionEnabled',
      (it) => value == null ? it.isNull() : it.equals(value));
}