onError property
Invoked by the platform channel layer when a native error occurs during an active tracking session (e.g. permission revoked, location unavailable).
The public API layer sets this during initialize via
LiveLocation._setupPlatformListeners. Errors that occur before tracking
starts are thrown synchronously and do not use this callback.
Implementation
void Function(LocationException)? onError;