createScopeByDefinition method

Scope createScopeByDefinition(
  1. String scopeId,
  2. ScopeDefinition scopeDefinition, {
  3. dynamic source,
})

Implementation

Scope createScopeByDefinition(String scopeId, ScopeDefinition scopeDefinition,
    {dynamic source}) {
  Scope scope = Scope(_fluttin, scopeId, scopeDefinition, source: source);
  List<Scope> links = <Scope>[];
  if (null != _rootScope) {
    links.add(_rootScope!);
  }
  scope.create(links);
  return scope;
}