SourceHandler class abstract interface

Base interface for handling different model source types Each source type (Network, Asset, Bundled, File) has its own handler implementation

This follows the Strategy pattern and allows for:

  • Type-safe handling of each source type
  • Dependency injection of platform-specific services
  • Easy testing with mocks
  • Extension with new source types without modifying existing code (OCP)
Implementers

Properties

hashCode int
The hash code for this object.
no setterinherited
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
installWithProgress(ModelSource source) Stream<int>
Installs the model with progress tracking
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
supportsResume(ModelSource source) bool
Checks if this source supports resume after interruption
toString() String
A string representation of this object.
inherited

Operators

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