patchbayUiGestureFlingCommandDescriptor top-level property

PatchbayCommandDescriptor patchbayUiGestureFlingCommandDescriptor
final

Implementation

final patchbayUiGestureFlingCommandDescriptor = _gesture(
  'ui.gesture.fling',
  'Fling from a target-local point with normalized velocity.',
  'uiGestureFling',
  'fling',
  'Fling from an anchored target-local point.',
  extraParameters: <PatchbayParameterDescriptor>[
    _p('velocity', PatchbayParameterType.json, required: true),
    _p('durationMs', PatchbayParameterType.integer, defaultValue: 100),
  ],
  extraOptions: const <String, String>{
    'velocity': 'velocity',
    'durationMs': 'duration-ms',
  },
  usageSuffix:
      '<identifier> <generation> --start <json> --velocity <json> '
      '[--duration-ms <ms>]',
);