FirebaseModelDownloaderPlatform class abstract
- Inheritance
-
- Object
- PlatformInterface
- FirebaseModelDownloaderPlatform
Constructors
- FirebaseModelDownloaderPlatform({FirebaseApp? appInstance})
- FirebaseModelDownloaderPlatform.instanceFor({required FirebaseApp app})
-
Create an instance using
app
using the existing implementationfactory
Properties
- app → FirebaseApp
-
Returns the
FirebaseApp
for the current instance.no setter - appInstance → FirebaseApp?
-
The
FirebaseApp
this instance was initialized with.final - hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
delegateFor(
{required FirebaseApp app}) → FirebaseModelDownloaderPlatform -
Enables delegates to create new instances of themselves if a none default
FirebaseApp
instance is required by the user. -
deleteDownloadedModel(
String modelName) → Future< void> - Deletes a locally downloaded model by name.
-
getModel(
String modelName, FirebaseModelDownloadType downloadType, FirebaseModelDownloadConditions conditions) → Future< FirebaseCustomModel> - Gets the downloaded model file based on download type and conditions.
-
listDownloadedModels(
) → Future< List< FirebaseCustomModel> > - Lists all models downloaded to device.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- instance ↔ FirebaseModelDownloaderPlatform
-
The current default FirebaseModelDownloaderPlatform instance.
getter/setter pair