discontinuedPackage fluttersdk_dusk has been discontinued and replaced by tapir.

acquireSemantics static method

bool acquireSemantics()

Takes dusk's semantics handle again. Returns whether it had to.

The tree does not exist the moment this returns: the framework schedules the initial semantics build for the next frame, so a caller that needs the root node awaits one.

Implementation

static bool acquireSemantics() {
  _semanticsReleased = false;
  if (_semanticsHandle != null) return false;
  _semanticsHandle = RendererBinding.instance.ensureSemantics();
  return true;
}