Geolocation constructor

const Geolocation({
  1. Key? key,
  2. required Widget child,
  3. bool requestPermissionIfNeeded = true,
  4. bool isObserving = true,
  5. bool isEnabled = true,
  6. bool stopWhileInBackground = true,
  7. GeolocationFallbackBuilder fallbackBuilder = defaultGeolocationFallbackBuilder,
  8. ValueChanged<GeolocationStatus>? onStatusChanged,
  9. GeolocationController? controller,
})

Implementation

const Geolocation({
  Key? key,
  required this.child,
  this.requestPermissionIfNeeded = true,
  this.isObserving = true,
  this.isEnabled = true,
  this.stopWhileInBackground = true,
  this.fallbackBuilder = defaultGeolocationFallbackBuilder,
  this.onStatusChanged,
  this.controller,
}) : super(key: key);