loadWifiConfig method

void loadWifiConfig({
  1. required dynamic callback(
    1. String wifiName,
    2. String password
    ),
})

Implementation

void loadWifiConfig(
    {required Function(String wifiName, String password) callback}) {
  UnitsDataTool.getValue(WIFI_NAME, '').then((value) {
    UnitsDataTool.getValue(WIFI_PASSWORD, '').then((value2) {
      myWifiName = value;
      myWifiPassword = value2;
      callback(value, value2);
    });
  });
}