tails method Null safety
Returns all the rest of the elements by deleting the first element of the list in order.
[1, 2, 3].tails();
[[1, 2, 3], [2, 3], [3], []]
[].tails();
[[]]
Implementation
List<List<T>> tails() {
return this._tails([...this]);
}