EVSearchCallback typedef

EVSearchCallback = void Function(EVSearchError? error, List<EVChargingLocation>? chargingLocations)

The method that will be called on the main thread when a search operation in EVSearchEngine has been completed.

Note: This is a beta release of this feature, so there could be a few bugs and unexpected behaviors. Related APIs may change for new releases without a deprecation process.

  • error The ev search error.

  • chargingLocations The ev charging locations.

Implementation

typedef EVSearchCallback = void Function(EVSearchError? error, List<EVChargingLocation>? chargingLocations);