copyWith method
Creates a copy with replaced values.
Implementation
FileSearchCustomMetadata copyWith({
String? key,
Object? stringValue = unsetCopyWithValue,
Object? numericValue = unsetCopyWithValue,
Object? stringListValue = unsetCopyWithValue,
}) {
return FileSearchCustomMetadata(
key: key ?? this.key,
stringValue: stringValue == unsetCopyWithValue
? this.stringValue
: stringValue as String?,
numericValue: numericValue == unsetCopyWithValue
? this.numericValue
: numericValue as double?,
stringListValue: stringListValue == unsetCopyWithValue
? this.stringListValue
: stringListValue as List<String>?,
);
}