install abstract method

Future<void> install(
  1. ModelSource source, {
  2. CancelToken? cancelToken,
})

Installs the model from the given source

This method performs the actual installation:

  • NetworkSource: downloads from URL
  • AssetSource: copies from Flutter assets
  • BundledSource: accesses native resources
  • FileSource: registers external file path

Parameters:

  • source: The model source to install from
  • cancelToken: Optional token for cancelling the installation

Throws:

Implementation

Future<void> install(
  ModelSource source, {
  CancelToken? cancelToken,
});