History is by line, not by statement.
The first item in the list is the most recent history item.
List<String> history = [];