whereCenterSlice method

  1. @useResult
WidgetSelector<Image> whereCenterSlice(
  1. MatchProp<Rect> match
)

Creates a WidgetSelector that finds all Image where centerSlice matches the condition.

Example usage:

spot<Image>().whereCenterSlice((it) => it.equals(Rect.fromLTWH(0, 0, 100, 100))).existsOnce();

Implementation

@useResult
WidgetSelector<Image> whereCenterSlice(MatchProp<Rect> match) {
  return withDiagnosticProp<Rect>('centerSlice', match);
}