reOrderImage method

void reOrderImage(
  1. int oldIndex,
  2. int newIndex
)

Manually re-order image, i.e. move image from one position to another position.

Implementation

void reOrderImage(int oldIndex, int newIndex) {
  final oldItem = _images.removeAt(oldIndex);
  _images.insert(newIndex, oldItem);
  notifyListeners();
}