DependencyRegistrationKindLabel
LogoModularity

DependencyRegistrationKindLabel#

extension DependencyRegistrationKindLabel on DependencyRegistrationKind

Provide a human-readable label for each DependencyRegistrationKind value.

Properties#

label extension no setter#

String get label

Return a lowercase label suitable for display in graphs and logs.

Available on DependencyRegistrationKind, provided by the DependencyRegistrationKindLabel extension

Implementation
String get label {
  switch (this) {
    case DependencyRegistrationKind.singleton:
      return 'singleton';
    case DependencyRegistrationKind.factory:
      return 'factory';
    case DependencyRegistrationKind.instance:
      return 'instance';
  }
}