Skip to content

Commit 4df6afd

Browse files
authored
fix typo in TimeoutException (#1354)
1 parent 7180032 commit 4df6afd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

geolocator/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ Future<Position> _determinePosition() async {
228228
To query the current location of the device simply make a call to the `getCurrentPosition` method. You can finetune the results by specifying the following parameters:
229229

230230
- `desiredAccuracy`: the accuracy of the location data that your app wants to receive;
231-
- `timeLimit`: the maximum amount of time allowed to acquire the current location. When the time limit is passed a `TimeOutException` will be thrown and the call will be cancelled. By default no limit is configured.
231+
- `timeLimit`: the maximum amount of time allowed to acquire the current location. When the time limit is passed a `TimeoutException` will be thrown and the call will be cancelled. By default no limit is configured.
232232

233233
``` dart
234234
import 'package:geolocator/geolocator.dart';
@@ -252,7 +252,7 @@ To listen for location changes you can call the `getPositionStream` to receive s
252252

253253
- `accuracy`: the accuracy of the location data that your app wants to receive;
254254
- `distanceFilter`: the minimum distance (measured in meters) a device must move horizontally before an update event is generated;
255-
- `timeLimit`: the maximum amount of time allowed between location updates. When the time limit is passed a `TimeOutException` will be thrown and the stream will be cancelled. By default no limit is configured.
255+
- `timeLimit`: the maximum amount of time allowed between location updates. When the time limit is passed a `TimeoutException` will be thrown and the stream will be cancelled. By default no limit is configured.
256256

257257
``` dart
258258
import 'package:geolocator/geolocator.dart';

0 commit comments

Comments
 (0)