buildDashboardWidget abstract method

Widget? buildDashboardWidget({
  1. required BuildContext context,
  2. VoidCallback? onExit,
  3. void onOpenApp(
    1. String? appId,
    2. String? route
    )?,
})

Dashboard rendering entry point. Returns null when the DSL declares no dashboard block — the host should fall back to a default card derived from metadata. The returned widget hosts only the dashboard.content subtree and re-evaluates bindings on dashboard.refreshInterval.

onOpenApp is invoked for DSL navigation:openApp actions fired from within the dashboard subtree — hosts use this to transition the launcher to the full application view.

Implementation

Widget? buildDashboardWidget({
  required BuildContext context,
  VoidCallback? onExit,
  void Function(String? appId, String? route)? onOpenApp,
});