patchbayNavigationBackCommandDescriptor top-level constant
PatchbayCommandDescriptor
const patchbayNavigationBackCommandDescriptor
Implementation
const PatchbayCommandDescriptor patchbayNavigationBackCommandDescriptor =
PatchbayCommandDescriptor(
name: 'navigation.back',
summary: 'Navigate back through the consumer adapter.',
plane: PatchbayPlane.flutterUi,
mode: PatchbayCommandMode.immediate,
sideEffect: PatchbaySideEffect.appState,
factSources: <PatchbayFactSource>{PatchbayFactSource.uiObserved},
parameters: <PatchbayParameterDescriptor>[
PatchbayParameterDescriptor(
name: 'revision',
type: PatchbayParameterType.integer,
required: true,
),
PatchbayParameterDescriptor(
name: 'timeoutMs',
type: PatchbayParameterType.integer,
defaultValue: 5000,
),
],
cliSyntax: <PatchbayCliSyntax>[
PatchbayCliSyntax(
id: 'navigationBack',
path: <String>['navigation', 'back'],
summary: 'Navigate back from an observed revision.',
usageSuffix: '[--revision <revision>]',
optionParameters: <String, String>{
'revision': 'revision',
'timeoutMs': 'timeout-ms',
},
positiveParameters: <String>{'timeoutMs'},
fencesNavigationRevision: true,
),
],
);