scope method

void scope(
  1. Key id,
  2. void drawScope()
)

Implementation

void scope(Key id, void Function() drawScope) {
  focus.pushScope(id);
  try {
    drawScope();
  } finally {
    focus.popScope();
  }
}