pushFront method

void pushFront(
  1. T value
)

Adds an element to the front of the list.

Implementation

void pushFront(T value) {
  _head = _ForwardListNode<T>(value, _head);
  _length++;
}