element method

  1. @override
bool element(
  1. E element,
  2. Collective<E> base, {
  3. Function? action,
})
override

Validates whether a specific element can be added to the collective.

Parameters:

  • element: The element to validate
  • collective: The target collective
  • action: 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;
}