Settings class

Implemented types
Annotations
  • @JsonSerializable(constructor: 'defaults')

Constructors

Settings({required bool registerAsImplementation, required List<String> priorities, required Map<String, List<String>> groups, required List<String> factories, required List<String> lazySingletons, required List<String> singletons, required RegisterType registerDefault, required bool autoRegister, required List<String> register, required List<String> doNotRegister, required List<String> ignoreForFile})
const
Settings.defaults({bool registerAsImplementation = false, List<String> priorities = const [], Map<String, List<String>> groups = const {}, List<String> factories = const [], List<String> lazySingletons = const [], List<String> singletons = const [], RegisterType registerDefault = RegisterType.factory, bool autoRegister = false, List<String> register = const [], List<String> doNotRegister = const [], List<String> ignoreForFile = const []})
const
Settings.fromJson(Map json)
factory

Properties

autoRegister bool
Whether to automatically register all classes.
final
defaultPriority → Priority
no setter
doNotRegister List<String>
A list of class name regex patterns (case sensitive) to use to determine whether to ignore the injectable.
final
factories List<String>
A list of class name regex patterns (case sensitive) to use to determine whether to register the injectable as a factory.
final
groups Map<String, List<String>>
A list of group names used to group injectables. The values of each group are the class name regex patterns (case sensitive)
final
hashCode int
The hash code for this object.
no setterinherited
ignoreForFile List<String>
A list of lint rules to ignore for the generated file.
final
lazySingletons List<String>
A list of class name regex patterns (case sensitive) to use to determine whether to register the injectable as a lazy singleton.
final
priorities List<String>
A list of class name regex patterns (case sensitive) to use to determine the order of injection.
final
register List<String>
A list of class name regex patterns (case sensitive) to use to determine whether to register the injectable.
final
registerAsImplementation bool
Whether to use the implementation class as the type arg when registering the injectable
final
registerDefault RegisterType
The default register type to use when registering an injectable.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
singletons List<String>
A list of class name regex patterns (case sensitive) to use to determine whether to register the injectable as a singleton.
final

Methods

getGroupForClass(String className) Group?
getPriorityForClass(String className) → Priority?
getPriorityForGroup(String group) int?
getRegisterTypeForClass(String name) RegisterType?
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

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