fileIn method

File fileIn(
  1. String directory,
  2. PretrainedModel model
)

Where download will put model inside directory.

Useful for checking whether the model is already in place without touching the network.

Implementation

File fileIn(String directory, PretrainedModel model) =>
    File(Directory(directory).uri.resolve(model.fileName).toFilePath());