removeItem method

  1. @override
void removeItem(
  1. int index,
  2. Tree item, {
  3. Duration duration = animationDuration,
})
override

Implementation

@override
void removeItem(int index, Tree item,
    {Duration duration = animationDuration}) {
  if (_listKey.currentState == null) throw Exception(_errorMsg);
  _listKey.currentState!.removeItem(
    index,
    (context, animation) => _removedItemBuilder(context, item, animation),
    duration: duration,
  );
}