resetSemanticsForTesting static method

  1. @visibleForTesting
void resetSemanticsForTesting()

Disposes whatever handle this class holds and clears the released flag, so a test leaves neither a live handle (the harness asserts every one is disposed) nor a released state for the next test to read.

Implementation

@visibleForTesting
static void resetSemanticsForTesting() {
  _semanticsHandle?.dispose();
  _semanticsHandle = null;
  _semanticsReleased = false;
}