stopReading method
Implementation
Future<void> stopReading() async {
if (_positionStream != null) {
await _positionStream!.cancel();
_positionStream = null;
_currentPosition = null;
}
}
Future<void> stopReading() async {
if (_positionStream != null) {
await _positionStream!.cancel();
_positionStream = null;
_currentPosition = null;
}
}