Returns the previous index.
(int, int, DateTime) get previousIndex => history.length == 1 ? history.first : history.skip(1).first;