withRepeat method

  1. @useResult
WidgetSelector<Image> withRepeat(
  1. ImageRepeat? value
)

Creates a WidgetSelector that finds all Image where repeat equals (==) value.

Example usage:

spot<Image>().withRepeat(ImageRepeat.values.first).existsOnce();

Implementation

@useResult
WidgetSelector<Image> withRepeat(ImageRepeat? value) {
  return withDiagnosticProp<ImageRepeat>(
      'repeat', (it) => value == null ? it.isNull() : it.equals(value));
}