BundledSourceHandler class
Handles installation of models from native bundled resources
Features:
- Uses platform-specific native resource paths
- Android: assets/models/{resourceName}
- iOS: Bundle.main.path(forResource:)
- Web: /assets/{resourceName}
- No copying required (uses native path directly)
- Single-step progress (resources already available)
- Implemented types
Constructors
- BundledSourceHandler.new({required FileSystemService fileSystem, required ModelRepository repository})
Properties
- fileSystem → FileSystemService
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- 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