lifecycleQueryWarning function
Maps a LifecycleQueryResult to the warning line to emit, or null.
Implementation
String? lifecycleQueryWarning(LifecycleQueryResult result) => switch (result) {
LifecycleReported(:final state) => foregroundWarning(state),
LifecycleUnavailable() => null,
LifecycleVmNotResponding() => vmNotRespondingWarning,
};