swipe method
Implementation
Future<void> swipe(OperationInput input) async {
final target = _swipeTarget(input);
final offset = switch (input.arguments['direction']?.toString() ?? 'left') {
'right' => const Offset(300, 0),
'up' => const Offset(0, 300),
'down' => const Offset(0, -300),
_ => const Offset(-300, 0),
};
await _dispatch(input, target: target, offset: offset, name: 'swipe');
}