pollLast method
E?
pollLast()
Removes and returns the last element.
Implementation
E? pollLast() {
if (_tail == null) {
return null;
}
final data = _tail!.data;
_removeNode(_tail!);
return data;
}
Removes and returns the last element.
E? pollLast() {
if (_tail == null) {
return null;
}
final data = _tail!.data;
_removeNode(_tail!);
return data;
}