copyWith method
- {String? label,
- String? model,
- List<
String?> ? exportFieldKeys, - List<
String> ? creatorFieldKeys, - List<
String> ? creatorCollapsedFieldKeys, - List<
String> ? tags, - int? order,
- int? id,
- Map<
String, Map< ? enhancements,int, String> > - Map<
int, String> ? actions, - bool? exportMediaTags,
- bool? useBrTags,
- bool? prependDictionaryNames}
Creates a deep copy of this mapping but with the given variables replaced with the new values.
Implementation
AnkiMapping copyWith({
String? label,
String? model,
List<String?>? exportFieldKeys,
List<String>? creatorFieldKeys,
List<String>? creatorCollapsedFieldKeys,
List<String>? tags,
int? order,
int? id,
Map<String, Map<int, String>>? enhancements,
Map<int, String>? actions,
bool? exportMediaTags,
bool? useBrTags,
bool? prependDictionaryNames,
}) {
return AnkiMapping(
label: label ?? this.label,
model: model ?? this.model,
exportFieldKeys: exportFieldKeys ?? this.exportFieldKeys,
creatorFieldKeys: creatorFieldKeys ?? this.creatorFieldKeys,
creatorCollapsedFieldKeys:
creatorCollapsedFieldKeys ?? this.creatorCollapsedFieldKeys,
tags: tags ?? this.tags,
order: order ?? this.order,
id: id ?? this.id,
enhancements: enhancements ?? this.enhancements,
actions: actions ?? this.actions,
exportMediaTags: exportMediaTags ?? this.exportMediaTags,
useBrTags: useBrTags ?? this.useBrTags,
prependDictionaryNames:
prependDictionaryNames ?? this.prependDictionaryNames,
);
}