copyWith method

EnvironmentConfig copyWith({
  1. String? name,
  2. String? flavor,
  3. String? lane,
  4. Map<String, String>? dartDefines,
  5. String? shorebirdAppId,
})

Creates a copy of this config with updated properties.

Implementation

EnvironmentConfig copyWith({
  String? name,
  String? flavor,
  String? lane,
  Map<String, String>? dartDefines,
  String? shorebirdAppId,
}) {
  return EnvironmentConfig(
    name: name ?? this.name,
    flavor: flavor ?? this.flavor,
    lane: lane ?? this.lane,
    dartDefines: dartDefines ?? this.dartDefines,
    shorebirdAppId: shorebirdAppId ?? this.shorebirdAppId,
  );
}