FirebaseModelDownloadType enum
A download type to download a custom model when calling the getModel
API.
Constructors
- FirebaseModelDownloadType()
-
const
Values
- localModel → const FirebaseModelDownloadType
-
Returns the current model if present, otherwise triggers new download (or finds one in progress) and only completes when download is finished.
- localModelUpdateInBackground → const FirebaseModelDownloadType
-
Returns the current model if present and triggers an update to fetch a new version in the background. If no local model is present triggers a new download (or finds one in progress) and only completes when download is finished.
- latestModel → const FirebaseModelDownloadType
-
Returns the latest model. Checks if latest model is different from local model. If the models are the same, returns the current model. Otherwise, triggers a new model download and returns when this download finishes.
Properties
Methods
-
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
Constants
-
values
→ const List<
FirebaseModelDownloadType> - A constant List of the values in this enum, in order of their declaration.