onForegroundLocation property
Invoked by the platform channel layer when a foreground location arrives.
The public API layer sets this during initialize via
LiveLocation._setupPlatformListeners. Platform implementations must
call this instead of reaching directly into the public API singleton.
Implementation
void Function(LocationUpdate)? onForegroundLocation;