clear method

void clear()

clear method.

Implementation

void clear() {
  throwIfDisposed('clear');
  value = const []; // Use const empty list
}