ensureSemantics method Null safety

SemanticsHandle ensureSemantics()

Enable semantics in a test by creating a SemanticsHandle.

The handle must be disposed at the end of the test.

Implementation

SemanticsHandle ensureSemantics() {
  return binding.pipelineOwner.ensureSemantics();
}