AnkiMapping.defaultMapping constructor
Get the default mapping that is included with the application at first startup. Requires a language so that the appropriate default enhancements are suggested.
Implementation
factory AnkiMapping.defaultMapping({
required Language language,
required int order,
}) {
return AnkiMapping(
label: standardProfileName,
model: standardModelName,
exportFieldKeys: [
TermField.key,
ReadingField.key,
FuriganaField.key,
SentenceField.key,
ClozeBeforeField.key,
ClozeInsideField.key,
ClozeAfterField.key,
MeaningField.key,
ExpandedMeaningField.key,
CollapsedMeaningField.key,
NotesField.key,
ContextField.key,
FrequencyField.key,
PitchAccentField.key,
ImageField.key,
AudioField.key,
AudioSentenceField.key,
],
creatorFieldKeys: defaultCreatorFieldKeys,
creatorCollapsedFieldKeys: defaultCreatorCollapsedFieldKeys,
order: order,
tags: [standardModelName],
enhancements: defaultEnhancementsByLanguage[language.languageCountryCode],
actions: defaultActionsByLanguage[language.languageCountryCode],
exportMediaTags: true,
useBrTags: true,
prependDictionaryNames: true,
);
}