shared/values/values library

Classes

AppRoute
A route within the app.
AppRouter
An app-wide router that supports navigation via AppRoutes.
AppRouterProvider
Inherited widget that provides an AppRouter.
AppTimeAgoEnMessages
EnMessages that are suitable for the app.
ChildAppRoute
A child app route.
DeviceEventsRoute
A route representing the event log page for a device
DeviceOverviewRoute
A route representing the device overview page
DeviceRedirectRoute
A route that redirects to the device overview page
EventsRedirectRoute
A route that redirects to the event log page for a device
FleetRoute
A route representing the fleet / home page, with possible list view and dashboard view options
GeneratorTrendsRoute
A route representing a generator trends page
InterceptNavigationScope
Registers callbacks to veto attempts to navigate to a different route or pop the existing route.
LogoutIntent
An intent that logs out the user.
An intent that navigates to the given route.
PopRouteIntent
An intent that pops the current route.
RefreshIntent
An intent that refreshes the surrounding content.
RootAppRoute
A root app route.

Enums

BottomNavStackBehavior
The behavior of the navigation stack when tapping the buttons on the app's bottom navigation bar.
FleetView
InterceptAction
TrendRouteArg
Argument representing the generator param for a generator trends page
TrendTimeRouteArg
Argument representing the time span for a generator trends page

Extensions

AppRouterContextExt on BuildContext
LocalizationExtensions on BuildContext

Constants

appLocalizationDelegates → const List<LocalizationsDelegate>
appSupportedLocales → const List<Locale>

Properties

additionalResourcesEnabledFlag StateNotifierProvider<PreferenceNotifier<bool>, bool>
Provider for feature flag that enables the additional resources tab in the device overview page
final
bottomNavStackBehaviorFlagProvider Provider<BottomNavStackBehavior>
Provider for the bottom nav stack behavior feature flag
final
genAdditionInfoButtonEnabledFlag StateNotifierProvider<PreferenceNotifier<bool>, bool>
Provider for whether to enable the info button for the serial number and controller pin in the Generator details page of the Generator addition workflow.
final
ndaEnabledFlagProvider Provider<bool>
Provider for feature flag that enables the NDA screen
final
showConnectionNotificationsPrefProvider StateNotifierProvider<PreferenceNotifier<bool>, bool>
Provides the user's preference for showing connection notifications
final
showEmailNotificationsPrefProvider StateNotifierProvider<PreferenceNotifier<bool>, bool>
Provides the user's preference for showing notice notifications
final
showGeneratorRunningNotificationsPrefProvider StateNotifierProvider<PreferenceNotifier<bool>, bool>
Provides the user's preference for showing generator running notifications
final
showLongRunningNotificationsPrefProvider StateNotifierProvider<PreferenceNotifier<bool>, bool>
Provides the user's preference for showing long-running (8+ hour) generator notifications
final
showMaintenanceNotificationsPrefProvider StateNotifierProvider<PreferenceNotifier<bool>, bool>
Provides the user's preference for showing maintenance reminder notifications
final
showNoticeNotificationsPrefProvider StateNotifierProvider<PreferenceNotifier<bool>, bool>
Provides the user's preference for showing notice notifications
final
showShutdownNotificationsPrefProvider StateNotifierProvider<PreferenceNotifier<bool>, bool>
Provides the user's preference for showing shutdown notifications
final
showWarningNotificationsPrefProvider StateNotifierProvider<PreferenceNotifier<bool>, bool>
Provides the user's preference for showing warning notifications
final
themeModePrefProvider StateNotifierProvider<PreferenceNotifier<ThemeMode>, ThemeMode>
Provides the user's preferred theme mode.
final

Functions

resetDeveloperOptions(BuildContext context) Future<void>
Reset all developer option flags to their default values
setUpLocalizations() → void
Set up localization-related settings, including time ago messages

Typedefs