updateTotal method
Implementation
void updateTotal(double total) {
if (total != _total) {
_total = total;
this.notifyListeners();
}
}
void updateTotal(double total) {
if (total != _total) {
_total = total;
this.notifyListeners();
}
}