onBackgroundLocation property

void Function(LocationUpdate)? onBackgroundLocation
getter/setter pair

Invoked by the platform channel layer when a background 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)? onBackgroundLocation;