evaluate method

  1. @override
FutureOr<Evaluation> evaluate(
  1. WidgetTester tester
)
override

Evaluate whether the current state of the tester conforms to the rule.

Implementation

@override
FutureOr<Evaluation> evaluate(WidgetTester tester) {
  Evaluation result = const Evaluation.pass();

  for (final RenderView view in tester.binding.renderViews) {
    result += _traverse(view.owner!.semanticsOwner!.rootSemanticsNode!);
  }

  return result;
}