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