SDKEnvironment enum

SDK Environment mode - determines how data is handled

Inheritance
Available extensions

Values

development → const SDKEnvironment

Development/testing mode - may use local data, verbose logging

staging → const SDKEnvironment

Staging mode - testing with real services

production → const SDKEnvironment

Production mode - live environment

Properties

defaultLogLevel LogLevel

Available on SDKEnvironment, provided by the SDKEnvironmentExtension extension

Determine logging verbosity based on environment
no setter
description String

Available on SDKEnvironment, provided by the SDKEnvironmentExtension extension

Human-readable description
no setter
hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
isCompatibleWithCurrentBuild bool

Available on SDKEnvironment, provided by the SDKEnvironmentExtension extension

Check if the current build configuration is compatible with this environment Production environment is only allowed in Release builds
no setter
isProduction bool

Available on SDKEnvironment, provided by the SDKEnvironmentExtension extension

Check if this is a production environment
no setter
isTesting bool

Available on SDKEnvironment, provided by the SDKEnvironmentExtension extension

Check if this is a testing environment
no setter
name String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
requiresAuthentication bool

Available on SDKEnvironment, provided by the SDKEnvironmentExtension extension

Requires API authentication (non-development)
no setter
requiresBackendURL bool

Available on SDKEnvironment, provided by the SDKEnvironmentExtension extension

Check if this environment requires a valid backend URL
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shouldSendTelemetry bool

Available on SDKEnvironment, provided by the SDKEnvironmentExtension extension

Should send telemetry data (production only)
no setter
shouldSyncWithBackend bool

Available on SDKEnvironment, provided by the SDKEnvironmentExtension extension

Should sync with backend (non-development)
no setter
useMockData bool

Available on SDKEnvironment, provided by the SDKEnvironmentExtension extension

Should use mock data sources (development only)
no setter

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<SDKEnvironment>
A constant List of the values in this enum, in order of their declaration.