front property
Returns the front element of the queue without removing it. Throws a StateError if the queue is empty.
Implementation
T get front {
if (empty) {
throw StateError('Cannot access front of an empty Queue');
}
return _container.getFront();
}