expectVisible method

void expectVisible(
  1. String id
)

Implementation

void expectVisible(String id) {
  return RunnerBenchmark.sync('assertion', 'expectVisible', () {
    if (!_hasVisiblePaintedElement(finderForId(id))) {
      throw EnsembleTestFailure(
        'Expected widget with id "$id" to be visible. '
        '${widgetIdFailureHint(id)}',
      );
    }
  });
}