of static method

Implementation

static CarpenterCommandScope of(BuildContext context) {
  final scope = maybeOf(context);
  assert(scope != null, 'No CarpenterCommandScope found in context.');
  return scope!;
}