copyWith method

InjectionContext copyWith({
  1. List<String>? activeProfiles,
  2. Map<String, String>? properties,
  3. bool? allowCircularDependencies,
})

Creates a copy of this context with additional properties

Implementation

InjectionContext copyWith({
  List<String>? activeProfiles,
  Map<String, String>? properties,
  bool? allowCircularDependencies,
}) =>
    InjectionContext(
      activeProfiles: activeProfiles ?? this.activeProfiles,
      properties: properties ?? this.properties,
      allowCircularDependencies:
          allowCircularDependencies ?? this.allowCircularDependencies,
    );