Settings class Null safety

Misc. settings for CAMS.

This class is a singleton, access using Settings().

Supports:

Constructors

Settings()
factory

Properties

appName String?
The app name. CFBundleDisplayName on iOS, application/label on Android.
read-only
buildNumber String?
The build number. CFBundleVersion on iOS, versionCode on Android.
read-only
debugLevel DebugLevel
The global debug level setting. [...]
read / write
deploymentBasePath Future<String?>
The base path for storing all CARP related files on the form [...]
read-only
hashCode int
The hash code for this object. [...]
read-only, inherited
localApplicationPath Future<String>
Path to a directory where the application may place data that is user-generated.
read-only
packageInfo PackageInfo?
Package information
read-only
packageName String?
The package name. bundleIdentifier on iOS, getPackageName on Android.
read-only
preferences SharedPreferences?
A simple persistent store for simple data. Note that data is saved in plain format and should hence not be used for sensitive data. [...]
read-only
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
saveAppTaskQueue bool
Save the queue of AppTasks in the AppTaskController across app re-start?
read / write
studyDeploymentId String?
Returns the study deployment id for the currently running deployment. Returns the deployment id cached locally on the phone (if available). Returns null if no study is deployed (yet).
read / write
studyDeploymentStartTime Future<DateTime?>
The timestamp (in UTC) when the current study deployment was started on this phone. [...]
read-only
userId Future<String>
Generate a user id that is; [...]
read-only
version String?
The package version. CFBundleShortVersionString on iOS, versionName on Android.
read-only

Methods

eraseStudyDeployment() Future<void>
Erase all study deployment information cached locally on this phone.
init() Future<void>
Initialize settings. Must be called before using any settings.
markStudyDeploymentAsStarted() Future<void>
Mark the study deployment as started.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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

CARP_DATA_FILE_PATH → const String
'data'
CARP_RESOURCE_FILE_PATH → const String
'resources'
STUDY_DEPLOYMENT_ID_KEY → const String
'study_deployment_id'
STUDY_START_KEY → const String
'study_start'
USER_ID_KEY → const String
'user_id'