// Automatic FlutterFlow imports import '/backend/schema/structs/index.dart'; import '/backend/supabase/supabase.dart'; import '/actions/actions.dart' as action_blocks; import '/flutter_flow/flutter_flow_theme.dart'; import '/flutter_flow/flutter_flow_util.dart'; import '/custom_code/actions/index.dart'; // Imports other custom actions import '/flutter_flow/custom_functions.dart'; // Imports custom functions import 'package:flutter/material.dart'; // Begin custom action code // DO NOT REMOVE OR MODIFY THE CODE ABOVE! Future onReorder( List list, int oldIndex, int newIndex, ) async { // get list and change the item in the oldIndex to the newIndex if (oldIndex < newIndex) { newIndex -= 1; } final String item = list.removeAt(oldIndex); list.insert(newIndex, item); return list; }