DashboardData class

The dashboard's widgets, in the order the server published them.

Values only — a widget's shape is not published separately, because a dashboard's numbers are computed per request and there is nothing static to cache. Pull-to-refresh re-runs the queries.

Constructors

DashboardData({List<DashboardWidgetData> widgets = const [], PanelDirection direction = PanelDirection.ltr})
const
DashboardData.fromJson(Map<String, dynamic> json)
factory

Properties

direction PanelDirection
The panel's own layout direction — GET /dashboard's half of the same answer /schema's panel.direction publishes, so DashboardScreen can wrap itself without a host-facing parameter. See withPanelDirection's doc for why this is resolved in build(), not a State method.
final
hashCode int
The hash code for this object.
no setterinherited
props List<Object?>
The list of properties that will be used to determine whether two instances are equal.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stringify bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited
widgets List<DashboardWidgetData>
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