shareTrip method
Implementation
Future<ShareTripResponse?> shareTrip(
String appTripId,
String countryCOde,
String phoneNUmber,
) async {
try {
ShareTripResponse? shareTripResponse = await kruzr_comm.shareTrip(
appTripId,
countryCOde,
phoneNUmber,
);
return shareTripResponse;
} on Exception catch (e, stackTrace) {
if (kDebugMode) {
print("Error in shareTripResponse");
print(stackTrace);
print(e);
}
return Future.error("Unable to share trip");
}
}