GaodeLocation constructor

GaodeLocation({
  1. bool backgroundService = false,
})

初始化

Implementation

GaodeLocation({bool backgroundService=false}) {
  if(backgroundService) {
    _pluginKey = xbrGaodeBackgroundLocationKey;
  } else {
    _pluginKey = DateTime.now().millisecondsSinceEpoch.toString();
  }
}