Scope class

Constructors

Scope(Scope? _parentScope)

Properties

hashCode int
The hash code for this object.
no setterinherited
parentScope Scope?
RU: Метод возвращает родительский Scope.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

closeSubScope(String name) → void
RU: Метод закрывает дочерний (дополнительный) Scope.
dropModules() Scope
RU: Метод удаляет пользовательские модули из Scope.
installModules(List<Module> modules) Scope
RU: Метод инициализирует пользовательские модули в Scope.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
openSubScope(String name) Scope
RU: Метод открывает дочерний (дополнительный) Scope.
resolve<T>({String? named, dynamic params}) → T
RU: Возвращает найденную зависимость, определенную параметром типа T. Выдает StateError, если зависимость не может быть разрешена. Если вы хотите получить null, если зависимость не может быть найдена, то используйте вместо этого tryResolve return - возвращает объект типа T или StateError
toString() String
A string representation of this object.
inherited
tryResolve<T>({String? named, dynamic params}) → T?
RU: Возвращает найденную зависимость типа T или null, если она не может быть найдена. ENG: Returns found dependency of type T or null if it cannot be found.

Operators

operator ==(Object other) bool
The equality operator.
inherited