withSoftWrap method

  1. @useResult
WidgetSelector<Text> withSoftWrap(
  1. bool? value
)

Creates a WidgetSelector that finds all Text where softWrap equals (==) value.

Example usage:

spot<Text>().withSoftWrap(true).existsOnce();

Implementation

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