removeItem method
void
removeItem(})
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,
);
}