MicroPackageRootInit class
If used, micropackage support is enabled. The generation will assume that current library is the 'root', or actually the application that encloses multiple micro libraries. This annotation extends InjectableInit, therefore only one of them should be used
- Inheritance
-
- Object
- InjectableInit
- MicroPackageRootInit
Constructors
- MicroPackageRootInit({dynamic generateForDir = const ['lib'], dynamic preferRelativeImports = true, dynamic initializerName = r'$initGetIt', dynamic asExtension = false})
-
const
Properties
- asExtension → bool
-
if true the init function
will be generated inside
of a
GetIi
extension defaults to falsefinalinherited -
generateForDir
→ List<
String> -
Only files exist in provided directories will be processed
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- initializerName → String
-
generated initializer name
defaults to $initGetIt
finalinherited
- preferRelativeImports → bool
-
if true relative imports will be used where possible
defaults to true
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited