withOverflow method

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

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

Example usage:

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

Implementation

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