ProviderChangeEvent constructor

ProviderChangeEvent(
  1. Map event
)

Implementation

ProviderChangeEvent(Map event) {
  this.enabled = event['enabled'];
  this.status = event['status'];
  this.network = event['network'];
  this.gps = event['gps'];

  if (event['accuracyAuthorization'] != null) {
    this.accuracyAuthorization = event['accuracyAuthorization'];
  } else {
    this.accuracyAuthorization = ACCURACY_AUTHORIZATION_FULL;
  }
}