From 0f4659817899c27aaa75782fd06679da9817c64e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Se=CC=81bastien=20Dabet?= Date: Thu, 31 Aug 2023 10:32:10 +0200 Subject: [PATCH] Default values for PositionOptions fields --- lib/src/ui/control/geolocate_control.dart | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/src/ui/control/geolocate_control.dart b/lib/src/ui/control/geolocate_control.dart index 4dedcb5..8c8ce63 100644 --- a/lib/src/ui/control/geolocate_control.dart +++ b/lib/src/ui/control/geolocate_control.dart @@ -38,9 +38,9 @@ class PositionOptions extends JsObjectWrapper { num get timeout => jsObject.timeout; factory PositionOptions({ - bool? enableHighAccuracy, - num? maximumAge, - num? timeout, + bool? enableHighAccuracy = false, + num? maximumAge = 0, + num? timeout = double.infinity, }) => PositionOptions.fromJsObject(PositionOptionsJsImpl( enableHighAccuracy: enableHighAccuracy,