rollbackAddingLastItem method

  1. @override
dynamic rollbackAddingLastItem()

Removes the last object in this list, but only intended for use during add and similar calls. The list is in general not supposed to have insert/remove operations available as explained in the documentation of the list itself.


rollbackAddingLastItem() {
  // Pretend the last element doesn't exist (decreases the length).

  // Overwrite the data with all zeroes (this will increase the length again).

  // Move the length backwars again.