Geolocation constructor
const
Geolocation({
- Key? key,
- required Widget child,
- bool requestPermissionIfNeeded = true,
- bool isObserving = true,
- bool isEnabled = true,
- bool stopWhileInBackground = true,
- GeolocationFallbackBuilder fallbackBuilder = defaultGeolocationFallbackBuilder,
- ValueChanged<
GeolocationStatus> ? onStatusChanged, - 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);