PassioConfiguration class

A PassioConfiguration object must be constructed to configure the SDK. The configuration process depends on the location of the files needed for the SDK to work. There are three different ways to configure the SDK depending on the attributes of the object.

Constructors

PassioConfiguration(String key, {bool sdkDownloadsModels = true, bool allowInternetConnection = true, List<String>? filesLocalURLs, bool overrideInstalledVersion = false, int debugMode = 0, bool remoteOnly = false, String? proxyUrl, Map<String, String>? proxyHeaders})
const

Properties

allowInternetConnection bool
If you set allowInternetConnection = false without working with Passio the SDK will not work. The SDK will not connect to the internet for key validations, barcode data and packaged food data.
final
debugMode int
If you have problems configuring the SDK, set debugMode = 1 to get more debugging information.
final
filesLocalURLs List<String>?
If you have chosen to remove the files from the SDK and provide the SDK different URLs for this files please use this variable.
final
hashCode int
The hash code for this object.
no setterinherited
key String
Developer key provided by Passio Inc. For obtaining this key contact support@passiolife.com.
final
overrideInstalledVersion bool
Only use provided models. Don't use models previously installed.
final
proxyHeaders Map<String, String>?
Optional headers to be appended to the predefined headers when making API calls. These headers are used in conjunction with the proxyUrl for custom configurations.
final
proxyUrl String?
Optional proxy URL to be used as the base URL for all API calls within the SDK targeting the Passio backend. If not provided, the default base URL will be used.
final
remoteOnly bool
Set to true to use only remote services without downloading local models.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sdkDownloadsModels bool
If you set this option to true, the SDK will download the models relevant for this version from Passio's bucket.
final

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