clear method Null safety

  1. @override
void clear()
override

Clears this array by removing all its elements.