handleMessage method

  1. @override
void handleMessage(
  1. MapViewController mapViewController,
  2. Map<String, dynamic> payload
)
override

Implementation

@override
void handleMessage(
    MapViewController mapViewController, Map<String, dynamic> payload) {
  String code = payload['code'] ?? '';
  MapViewError? errorPayload;

  switch (code) {
    case 'NO_NETWORK_ERROR':
      errorPayload = MapViewError.noNetworkError();
      break;
    default:
      break;
  }

  if (errorPayload != null) {
    mapViewController._notifyMapViewError(errorPayload);
  }
}