onApiError property

void Function(NeshanApiError error)? onApiError
final

Called when any Neshan API request fails.

Covers errors from the reverse-geocoding and search services.

Implementation

final void Function(NeshanApiError error)? onApiError;