dashboard method

  1. @override
Future<DashboardData> dashboard()
override

GET /dashboard — the panel's widgets, values already computed.

Values are live: they are not cached the way panel is, and a re-read re-runs the panel's own queries, so pull-to-refresh always shows the current numbers rather than a stale snapshot.

Implementation

@override
Future<DashboardData> dashboard() async =>
    DashboardData.fromJson(await _read('$prefix/dashboard'));