SystemLocationDataSource constructor

SystemLocationDataSource({
  1. int interval = 250,
  2. double distanceFilter = 0.0,
  3. DeviceLocationAccuracyType deviceLocationAccuracy = DeviceLocationAccuracyType.high,
  4. ForegroundServiceNotificationConfig? foregroundServiceNotificationConfig,
})

Creates a system location data source. The interval is the interval in milliseconds at which location updates are requested (Android only). The distanceFilter is the distance filter in meters at which location updates are requested. The deviceLocationAccuracy is the desired accuracy for the location data provided by the device. The foregroundServiceNotificationConfig is the configuration for the content of the foreground service notification on Android. If background location updates are enabled and permissions for foreground service notifications have been configured for the application, this parameter will determine the notification's title and text (Android only).