add method Null safety

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

Adds the specified element to the collection.

@return true if the element has been added, false if the collection does not support duplicates and the element is already contained in the collection.

Implementation

@override
bool add(T element);