RemoveAt method

void RemoveAt(
  1. int index
)
Removes the day at a specific index. The index of the day to remove.

Implementation

void RemoveAt(int index) {
  if (index < 0 || index >= Count) {
    throw RangeError.range(index, 0, Count - 1, "index", "IndexIsOutOfRange");
  }

  _items.removeAt(index);
  Changed();
}