onRemove method

  1. @protected
Future<int> onRemove(
  1. int index
)

Called when trying to remove an item. Must return the removed item, or throw an error when it's failed to remove.

Implementation

@protected
Future<int> onRemove(int index) async {
  return index;
}