DictionaryTag.dictionary constructor

DictionaryTag.dictionary(
  1. Dictionary dictionary
)

Makes a tag for a dictionary.

Implementation

factory DictionaryTag.dictionary(Dictionary dictionary) {
  return DictionaryTag(
    dictionaryId: dictionary.id,
    name: dictionary.name,
    notes: '',
    sortingOrder: -100000000000,
    category: 'frequent',
    popularity: 0,
  );
}