of static method

Scope? of(
  1. WidgetModel? model
)

Implementation

static Scope? of(WidgetModel? model) {
  if (model == null) return null;
  if (model.scope != null) return model.scope!;
  if (model.parent?.subscope != null) return model.parent!.subscope!;
  return Scope.of(model.parent);
}