setDataSent method

void setDataSent(
  1. bool d
)

Assigns the argument d to dataSent and calls notifyListeners

Implementation

void setDataSent(bool d){
  dataSent = d;
  notifyListeners();
}