removeItem method
Implementation
@override
void removeItem(State? state, int? index, T? itemToRemove) {
log.info("$debugName had REMOVE[$index]");
final gridState = state as AnimatedGridState;
gridState.removeItem(index, (context, animation) {
return animated(
widget.dismissAnimationType,
name: "remove-$index",
reversed: true,
animation: animation,
child: itemBuilder(context, itemToRemove, index, animation),
);
});
}