remove method Null safety

bool remove(
  1. T element
)

Removes a single instance of the specified element from this collection, if it is present.

@return true if the element has been successfully removed; false if it was not present in the collection.

Implementation

bool remove(T element);