withOverflow method

  1. @useResult
WidgetSelector<AnyText> withOverflow(
  1. TextOverflow? value
)

Creates a WidgetSelector that finds all AnyText where overflow equals (==) value.

Example usage:

spot<AnyText>().withOverflow(TextOverflow.values.first).existsOnce();

Implementation

@useResult
WidgetSelector<AnyText> withOverflow(TextOverflow? value) {
  return withDiagnosticProp<TextOverflow>(
      'overflow', (it) => value == null ? it.isNull() : it.equals(value));
}