setDeviceModel method

void setDeviceModel(
  1. String s
)

Assigns the argyment s to deviceModel and calls notifyListeners

Implementation

void setDeviceModel(String s){
  deviceModel = s;
  notifyListeners();
}