clear method Null safety

void clear()

Removes all elements from this collection.

Implementation

void clear();