getDeviceInfoListener method

Stream<DeviceInfo> getDeviceInfoListener()

Implementation

Stream<DeviceInfo> getDeviceInfoListener() {
  _deviceInfoController = StreamController<DeviceInfo>();
  _deviceInfoController!.onCancel = () async {
    await _channel.invokeMethod("stopNavigation");
    _deviceInfoController!.close();
    _deviceInfoController = null;
  };
  return _deviceInfoController!.stream;
}