FileSourceHandler class

Handles installation of models from external file paths

Features:

  • Registers external files (user-provided paths)
  • Protects files from cleanup operations
  • No copying (uses external path directly)
  • Validates file existence before registration
  • Single-step progress (file already exists)
Implemented types

Constructors

FileSourceHandler.new({required FileSystemService fileSystem, required ProtectedFilesRegistry protectedFiles, required ModelRepository repository})

Properties

fileSystem FileSystemService
final
hashCode int
The hash code for this object.
no setterinherited
protectedFiles ProtectedFilesRegistry
final
repository ModelRepository
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

install(ModelSource source) Future<void>
Installs the model from the given source
override
installWithProgress(ModelSource source) Stream<int>
Installs the model with progress tracking
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
supports(ModelSource source) bool
Checks if this handler supports the given source type
override
supportsResume(ModelSource source) bool
Checks if this source supports resume after interruption
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited