DependencyRegistrationKindLabel
extension DependencyRegistrationKindLabel on DependencyRegistrationKindProvide a human-readable label for each DependencyRegistrationKind value.
Properties
label extension no setter
String get labelReturn a lowercase label suitable for display in graphs and logs.
Available on DependencyRegistrationKind, provided by the DependencyRegistrationKindLabel extension
Implementation
dart
String get label {
switch (this) {
case DependencyRegistrationKind.singleton:
return 'singleton';
case DependencyRegistrationKind.factory:
return 'factory';
case DependencyRegistrationKind.instance:
return 'instance';
}
}