Ewelink constructor

Ewelink({
  1. String? email,
  2. String? password,
  3. String region = 'us',
  4. EwelinkCredentials? credentials,
  5. String? phoneNumber,
  6. Map<String, dynamic>? arpTable,
  7. Map<String, dynamic>? devicesCache,
})

Implementation

Ewelink({
  this.email,
  this.password,
  this.region = 'us',
  this.credentials,
  this.phoneNumber,
  this.arpTable,
  this.devicesCache,
}) {
  if (!checkLoginParameters()) {
    throw new EwelinkInvalidCredentials();
  }

  _service = EwelinkService(
      appId: appId,
      appSecret: appSecret,
      region: this.region,
      credentials: this.credentials);
}