withCursorWidth method

  1. @useResult
WidgetSelector<SelectableText> withCursorWidth(
  1. double? value
)

Creates a WidgetSelector that finds all SelectableText where cursorWidth equals (==) value.

Example usage:

spot<SelectableText>().withCursorWidth(10.5).existsOnce();

Implementation

@useResult
WidgetSelector<SelectableText> withCursorWidth(double? value) {
  return withDiagnosticProp<double>(
      'cursorWidth', (it) => value == null ? it.isNull() : it.equals(value));
}