Profile class

Execution profile based service registration condition. This conditions matches true, if the application is running in the profile specified by Profile.profile, this behaviour can be inverted by using Profile.inverse.

Inheritance

Constructors

Profile(String profile, {bool inverse = false})
const

Properties

dependencies List<InjectorKey>
Additional service dependencies which are required to perform this condition check.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
inverse bool
final
optionalDependencies List<InjectorKey>
Additional optional dependencies
no setterinherited
profile String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

match(DarwinSystem system) FutureOr<bool>
Validates the conditions for the given DarwinSystem.
override
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