FirebaseModelDownloader class Null safety
- 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.
@visibleForTesting, read-only
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- pluginConstants → Map
-
Returns any plugin constants this plugin app instance has initialized.
read-only, inherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
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 non-existent 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.
read-only