copyWith method
ConfigEntry<T>
copyWith({
- String? key,
- T? value,
- ConfigScope? scope,
- ConfigSource? source,
- String? description,
- bool validator(
- T
Return a copy with replaced fields.
Implementation
ConfigEntry<T> copyWith({
String? key,
T? value,
ConfigScope? scope,
ConfigSource? source,
String? description,
bool Function(T)? validator,
}) {
return ConfigEntry<T>(
key: key ?? this.key,
value: value ?? this.value,
scope: scope ?? this.scope,
source: source ?? this.source,
description: description ?? this.description,
validator: validator ?? this.validator,
);
}