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!;
  return Scope.of(model.parent);
}