clear method

void clear()

Implementation

void clear() {
  for (final element in elements) {
    element.clear();
  }
}