clearSetting method Null safety

void clearSetting()

Implementation

void clearSetting() {
  username = null;
  password = null;
}