get last n elements of list dart code example
Example 1: last element in list dart
var lst = ["element1" , "element2" , "element3"];
lst.last // -> element3
Example 2: get last element of array flutter
var lst = ["element1" , "element2" , "element3"];
lst.last // -> element3