requireClient property
ClientRuntime
get
requireClient
The connected client, or throws when the context has none (local mode). Used by commands that require a Hub connection; those commands are never installed in local mode, so this never throws in practice.
Implementation
ClientRuntime get requireClient =>
client ?? (throw StateError('this command requires a Hub connection'));