PrefKey<T> enum

Typed preference keys with defaults.

Each key is a setting whose effective value is resolved through a source stack (see PreferencesRepository). Some are user-facing (toggled in the settings UI), others are app-controlled gates managed only via Remote Config and the debug screen.

Inheritance
Available extensions

Values

demoMode → const PrefKey<bool>

Whether to use mock data instead of live NTUT services.

const PrefKey<bool>(.boolean, false)
showDangerZone → const PrefKey<bool>

Whether the danger zone section is shown on the profile screen.

const PrefKey<bool>(.boolean, false)
showWeblateButton → const PrefKey<bool>

Whether the Weblate button is shown on the about page.

const PrefKey<bool>(.boolean, false)
showErrorDialog → const PrefKey<bool>

Whether to show the detailed error dialog on uncaught exceptions.

Defaults to kDebugMode (true in debug, false in release). Can be overridden via the regedit screen or Remote Config for on-device debugging.

const PrefKey<bool>(.boolean, kDebugMode)

Properties

defaultValue → T
final
hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
name String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type PrefType
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

Constants

values → const List<PrefKey>
A constant List of the values in this enum, in order of their declaration.