locationUpdatesState
Provides a State object that emits location updates.
This function uses collectAsState to convert the Flow of location updates into a State object. It applies distinctUntilChanged to ensure that only distinct location updates are emitted.
Return
A State that represents the current location state. The initial value is LocationState.CurrentLocation with a null location.