addFirst method Null safety
- E entry
Add entry
to the beginning of the linked list.
Implementation
void addFirst(E entry) {
_insertBefore(_first, entry, updateFirst: true);
_first = entry;
}
Add entry
to the beginning of the linked list.
void addFirst(E entry) {
_insertBefore(_first, entry, updateFirst: true);
_first = entry;
}