removeFromIndex static method
Removes an item from the list at the given index.
Implementation
static void removeFromIndex(String stateName, int index) {
updateState(
stateName,
data: {
"action": "removeFromIndex",
"data": {"index": index},
},
);
}