maxTotal method

num maxTotal()

Implementation

num maxTotal() {
  sort((a, b) => (a.total).compareTo((b.total)));
  return last.total;
}