copyWith method

EnvProperty copyWith({
  1. String? value,
  2. String? defaultValue,
  3. bool? required,
})

Implementation

EnvProperty copyWith({
  String? value,
  String? defaultValue,
  bool? required,
}) {
  return EnvProperty(
    key,
    value: value ?? this.value,
    defaultValue: defaultValue ?? this.defaultValue,
    required: required ?? this.required,
  );
}