moveFormItem method

Future<void> moveFormItem(
  1. int formId,
  2. int oldPosition,
  3. int newPosition
)

Moves the form item in the given form at the given position to the new position

Implementation

Future<void> moveFormItem(int formId, int oldPosition, int newPosition) async {
  await _put('/api/form/$formId/item/$oldPosition', data: {'newPosition': newPosition});
}