showCurrentLocationButton property

bool showCurrentLocationButton
final

Whether to show the current-location floating action button.

When true, a FAB is shown in the bottom-right corner. Tapping it:

  • Requests location permission if not already granted.
  • Opens location-service settings if the service is disabled.
  • Starts continuous location tracking.
  • On the first update, flies the map to the user's position; subsequent updates only move the location dot without re-centering the map.

Defaults to true.

Implementation

final bool showCurrentLocationButton;