CockpitAppStateProvider typedef

CockpitAppStateProvider = Map<String, Object?> Function()

Supplies app-authored state for describeApp commands.

The application decides what to expose — feature flags, environment, account tier, experiment buckets — and the value is read on demand, so it always reflects the moment the command runs. The payload is normalized, bounded, and redacted before it leaves the app process.

Implementation

typedef CockpitAppStateProvider = Map<String, Object?> Function();