FirebaseModelDownloadConditions class

Conditions to download remote models.

Constructors

FirebaseModelDownloadConditions({bool? androidRequireDeviceIdle = false, bool? androidRequireCharging = false, bool? androidRequireWifi = false, bool? iosAllowCellularAccess = true, bool? iosAllowBackgroundDownloading = false})
Constructor for the download conditions that takes optional platform-specific parameters and defaults them if none given.

Properties

androidRequireCharging bool?
Android only: indicates if charging is required.
final
androidRequireDeviceIdle bool?
Android only: indicates if device idle is required.
final
androidRequireWifi bool?
Android only: indicates if wifi is required.
final
hashCode int?
The hash code for this object.
no setterinherited
iosAllowBackgroundDownloading bool?
IOS only: indicates if download can happen in the background.
final
iosAllowCellularAccess bool?
IOS only: indicates if download should be over a cellular network.
final
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
toMap() Map<String?, bool?>?
Express download conditions via map.
toString() String?
A string representation of this object.
inherited

Operators

operator ==(Object? other) bool?
The equality operator.
inherited