getPositionStream static method

Stream<Position> getPositionStream([
  1. dynamic handleError(
    1. PositionError
    )?
])

Wraps the SimpleBgLocationPlatform.getPositionStream

The position update stream.

Fires whenever the location changed inside the bounds of the RequestSettings.accuracy

Implementation

static Stream<Position> getPositionStream(
    [Function(PositionError)? handleError]) {
  return SimpleBgLocationPlatform.instance.getPositionStream(handleError);
}