GpsLocationButton constructor

const GpsLocationButton({
  1. Key? key,
  2. required Future<ResolvedLocation> onResolveGps(
    1. double latitude,
    2. double longitude
    ),
  3. Future<({double latitude, double longitude})?> onGetCurrentLocation()?,
  4. void onError(
    1. String errorMessage
    )?,
  5. bool enabled = true,
})

Implementation

const GpsLocationButton({
  super.key,
  required this.onResolveGps,
  this.onGetCurrentLocation,
  this.onError,
  this.enabled = true,
});