void clear(String path)

Remove all items from a list at path.

Source

void clear(String path) {
  jsElement.callMethod('splice', [path, 0]);
}