createJourney method

Future<void> createJourney(
  1. String journeyType
)
override

Implementation

Future<void> createJourney(String journeyType) async {
  try {
    await _journeyChannel.invokeMethod('createJourneyinAbyan', journeyType);
  } on PlatformException catch (e) {
    print("Failed to invoke method: '${e.message}'.");
  } catch (e) {
    print("catch an error = $e}");
  }
}