FirebaseModelDownloader class

Inheritance
  • Object
  • PlatformInterface
  • FirebasePluginPlatform
  • FirebaseModelDownloader

Constructors

FirebaseModelDownloader.instanceFor({required FirebaseApp app})
Returns an instance using a specified FirebaseApp.
factory

Properties

app → FirebaseApp
The FirebaseApp for this current FirebaseModelDownloader instance.
final
delegate → FirebaseModelDownloaderPlatform
Returns the underlying FirebaseModelDownloaderPlatform delegate for this FirebaseModelDownloader instance. This is useful for testing purposes only.
no setter
hashCode int
The hash code for this object.
no setterinherited
pluginConstants Map
Returns any plugin constants this plugin app instance has initialized.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

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 FirebaseModelDownloader
Returns an instance using the default FirebaseApp.
no setter