modifyItem method
use to modify specific item in the list
Implementation
void modifyItem(int index, T modify(T value)) {
if (value.length > index) {
value[index] = modify(value[index]);
notifyListeners();
}
}
use to modify specific item in the list
void modifyItem(int index, T modify(T value)) {
if (value.length > index) {
value[index] = modify(value[index]);
notifyListeners();
}
}