reset method Null safety

void reset()

reset

Implementation

void reset() {
  pendingTotal = 0;
  pending = null;
}