remove method Null safety

  1. @override
bool remove(
  1. T element
)
override

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

@override
bool remove(T element);