element method
Validates whether a specific element can be added to the collective.
Parameters:
- element: The element to validate
collective: The target collectiveaction: Optional action context for the validation
Returns true if the element is allowed, false otherwise.
Implementation
@override
bool element(E element, Collective<E> base, {Function? action}) {
return true;
}