total method

num total()

Implementation

num total() {
  num total = 0;
  this.forEach((element) {
    total += element;
  });
  return total;
}