DictionaryFormat constructor

DictionaryFormat(
  1. {required String uniqueKey,
  2. required String name,
  3. required IconData icon,
  4. required List<String> allowedExtensions,
  5. required bool isTextFormat,
  6. required FileType fileType,
  7. required Future<void> prepareDirectory(
    1. PrepareDirectoryParams params
    ),
  8. required Future<String> prepareName(
    1. PrepareDirectoryParams params
    ),
  9. required Future<Map<DictionaryHeading, List<DictionaryEntry>>> prepareEntries(
    1. PrepareDictionaryParams params
    ),
  10. required Future<List<DictionaryTag>> prepareTags(
    1. PrepareDictionaryParams params
    ),
  11. required Future<Map<DictionaryHeading, List<DictionaryPitch>>> preparePitches(
    1. PrepareDictionaryParams params
    ),
  12. required Future<Map<DictionaryHeading, List<DictionaryFrequency>>> prepareFrequencies(
    1. PrepareDictionaryParams params
    )}
)

Define a format with the given metadata that has its behaviour for import, search and display defined with a set of top-level helper methods.

Implementation

DictionaryFormat({
  required this.uniqueKey,
  required this.name,
  required this.icon,
  required this.allowedExtensions,
  required this.isTextFormat,
  required this.fileType,
  required this.prepareDirectory,
  required this.prepareName,
  required this.prepareEntries,
  required this.prepareTags,
  required this.preparePitches,
  required this.prepareFrequencies,
});