installWithProgress abstract method

Stream<int> installWithProgress(
  1. ModelSource source
)

Installs the model with progress tracking

Returns a stream of progress percentages (0-100)

Note: Some sources may not support true progress:

  • AssetSource: simulates progress (copy is instant)
  • BundledSource: returns 100 immediately (no download)
  • FileSource: returns 100 immediately (just registration)

Example:

await for (final progress in handler.installWithProgress(source)) {
  print('Progress: $progress%');
}

Implementation

Stream<int> installWithProgress(ModelSource source);