last function
Gets the last element of list.
Uses dart's List.last
property
Example
_.last(["Dart", "Javascript", "Swift"]);
// Returns "Swift"
Implementation
dynamic last(List list) {
return list.last;
}
Gets the last element of list.
Uses dart's List.last
property
Example
_.last(["Dart", "Javascript", "Swift"]);
// Returns "Swift"
dynamic last(List list) {
return list.last;
}