FirebaseModelDownloadType enum

A download type to download a custom model when calling the getModel API.

Inheritance

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

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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.