Register class
An annotation that generates code for registering factories using the kiwi container.
Constructors
-
Register.factory(Type type, {String? name, Type? from, Map<
Type, String> ? resolvers, String? constructorName}) -
Create an annotation that will generate a
registerFactory
method.const -
Register.singleton(Type type, {String? name, Type? from, Map<
Type, String> ? resolvers, String? constructorName}) -
Create an annotation that will generate a
registerSingleton
method.const
Properties
- constructorName → String?
-
The name of the constructor to use inside the factory.
final
- from → Type?
-
The type to create when requesting type.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- name → String?
-
The name under which the factory will be registered
final
- oneTime → bool?
-
Whether the factory has to be created only one time.
final
-
resolvers
→ Map<
Type, String> ? -
A map that give for a type, the name under which it should be resolved
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → Type
-
The type to register.
final
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