whereTop method

Creates a WidgetSelector that finds all SafeArea where top matches the condition.

Example usage:

spot<SafeArea>().whereTop((it) => it.isTrue()).existsOnce();

Implementation

@useResult
WidgetSelector<SafeArea> whereTop(MatchProp<bool> match) {
  return withDiagnosticProp<bool>('top', match);
}