DeviceOverviewTab enum

Enum representation of a tab in the device overview

Contains methods for building a tab's corresponding tab widget and content widgets.

getValues can be used instead of values to get the correct list of tabs, taking into account any tabs disabled by feature flags.

Inheritance
Available extensions

Values

details → const DeviceOverviewTab
maintenance → const DeviceOverviewTab
additionalResources → const DeviceOverviewTab

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

buildContent({required BuildContext context, required int deviceId}) Widget
Build the content widget for the corresponding tab
buildFloatingActionButton({required BuildContext context, required int deviceId}) Widget?
Build the optional floating action button for the corresponding tab
buildTab(BuildContext context) Widget
Build the tab widget for the corresponding tab
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

Static Methods

getValues(BuildContext context) List<DeviceOverviewTab>
Returns the list of tabs to be displayed in the device overview page.

Constants

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