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

startWithCourseTable → const PrefKey<bool>

Whether authenticated navigation starts on the course table instead of home.

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

Last app version whose new features were opened.

const PrefKey<String>(.string, '')
lastPromptedWhatsNewVersion → const PrefKey<String>

Version associated with the new-feature prompt counter.

const PrefKey<String>(.string, '')
whatsNewPromptCount → const PrefKey<int>

Number of new-feature prompts shown for that version.

const PrefKey<int>(.integer, 0)
themeMode → const PrefKey<String>

The app theme mode: system, light, or dark.

const PrefKey<String>(.string, 'system')
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)
showWifiButton → const PrefKey<bool>

Whether campus Wi-Fi UI, setup, and automatic credential refresh are enabled.

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)
showCourseSchedule → const PrefKey<bool>

Whether the next course schedule carousel is shown on the home screen.

const PrefKey<bool>(.boolean, true)
showScannerButton → const PrefKey<bool>

Whether the iStudy QR scanner button is shown on the home screen.

const PrefKey<bool>(.boolean, true)
showPortalButton → const PrefKey<bool>

Whether the portal entry button is shown on the home screen.

const PrefKey<bool>(.boolean, true)
showCalendarButton → const PrefKey<bool>

Whether the academic calendar button is shown on the home screen.

const PrefKey<bool>(.boolean, true)
showCampusMapButton → const PrefKey<bool>

Whether the campus map entry button is shown on the home screen.

const PrefKey<bool>(.boolean, true)
showStudentUnionButton → const PrefKey<bool>

Whether the student union entry button is shown on the home screen.

const PrefKey<bool>(.boolean, true)
showChangePasswordButton → const PrefKey<bool>

Whether the change password button is shown on the profile screen.

const PrefKey<bool>(.boolean, true)
showChangeAvatarButton → const PrefKey<bool>

Whether the change avatar button is shown on the profile screen.

const PrefKey<bool>(.boolean, true)
showCourseRoster → const PrefKey<bool>

Whether the I-School Plus student roster is shown in course details.

const PrefKey<bool>(.boolean, true)
showAllCampusMapBuildings → const PrefKey<bool>

Whether the campus map building menu lists buildings hidden from the map.

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

Whether I-School Plus materials are shown in course details.

const PrefKey<bool>(.boolean, true)
iSchoolPlusNetworkGuideUrl → const PrefKey<String>

Link to instructions for connecting to the NTUT network remotely.

const PrefKey<String>(.string, defaultISchoolPlusNetworkGuideUrl)

Student union link URL overrides as a JSON array of {id, url} objects.

See parseLinkUrlOverrides for the format.

const PrefKey<String>(.string, '[]')

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.