import method

ImportResult import({
  1. List<String>? storeNames,
  2. ImportConflictStrategy strategy = ImportConflictStrategy.rename,
})

Imports specified stores and all necessary tiles into the current root from pathToArchive

pathToArchive must exist as an compatible file. The path must be accessible to the application: see pathToArchive for information. If it does not exist, ImportPathNotExists will be thrown. If it exists, but is not a file, ImportExportPathNotFile will be thrown. If it exists, but is not an FMTC archive, ImportFileNotFMTCStandard will be thrown. If it is an FMTC archive, but not compatible with the current backend, ImportFileNotBackendCompatible will be thrown.

See ImportConflictStrategy to set how conflicts between existing and importing stores should be resolved. Defaults to ImportConflictStrategy.rename.

Implementation

ImportResult import({
  List<String>? storeNames,
  ImportConflictStrategy strategy = ImportConflictStrategy.rename,
}) =>
    FMTCBackendAccess.internal.importStores(
      path: pathToArchive,
      storeNames: storeNames,
      strategy: strategy,
    );