LiveLocationWidget constructor

const LiveLocationWidget({
  1. Key? key,
  2. required LatLng sourceCoordinates,
  3. required LatLng destinationCoordinates,
  4. String sourceIcon = sourceMarker,
  5. String destinationIcon = sourceMarker,
  6. String userIcon = userMarker,
  7. required String apiKey,
  8. required Color pathColor,
  9. int pathWidth = 6,
  10. double tiltMap = 30,
  11. double zoomLevel = 16.0,
  12. required dynamic recentLocationDetail(
    1. LocationData
    ),
  13. required Color indicatorColor,
  14. required Color indicatorTextColor,
  15. required Color loadingScreenBackground,
})

Implementation

const LiveLocationWidget({
  Key? key,
  required this.sourceCoordinates,
  required this.destinationCoordinates,
  this.sourceIcon = sourceMarker,
  this.destinationIcon = sourceMarker,
  this.userIcon = userMarker,
  required this.apiKey,
  required this.pathColor,
  this.pathWidth = 6,
  this.tiltMap = 30,
  this.zoomLevel = 16.0,
  required this.recentLocationDetail,
  required this.indicatorColor,
  required this.indicatorTextColor,
  required this.loadingScreenBackground,
}) : super(key: key);