copyWith method
Creates a deep copy of this context but with the given fields replaced with the new values.
Implementation
CreatorFieldValues copyWith({
Map<Field, String>? textValues,
}) {
Map<Field, String>? newTextValues;
if (textValues != null) {
newTextValues = {};
newTextValues.addAll(textValues);
}
return CreatorFieldValues(textValues: newTextValues ?? this.textValues);
}