closeJourney method

Future<void> closeJourney(
  1. String customerID
)
override

Implementation

Future<void> closeJourney(String customerID) async {
  try {
    await _closeJourneyChannel.invokeMethod('closeJourney', customerID);
    print('Method called in AppDelegate');
  } on PlatformException catch (e) {
    print("Failed to invoke method: '${e.message}'.");
  } catch (e) {
    print("catch an error = $e}");
  }
}