# offer method

bool offer(

1. E element

)

Inserts the specified element into this queue if it is possible to do so immediately.

Returns true if the element was added successfully, false otherwise. In this implementation, it always returns true since the queue is unbounded.

Example:

    final queue = Queue<int>();
    final success = queue.offer(42);
    print(success); // true

## Implementation

    bool offer(E element) {
      _elements.add(element);
      return true;
    }