startNavigation method

Future<bool?> startNavigation({
  1. MapOptions? options,
})

Starts Free Drive Mode Starts the Navigation

Implementation

// Future<bool?> startFreeDrive({MapOptions? options}) async {
//   Map<String, dynamic>? args;
//   if (options != null) args = options.toMap();
//   return _methodChannel.invokeMethod(MethodChannelEvent.startFreeDrive, args);
// }

/// Starts the Navigation
Future<bool?> startNavigation({MapOptions? options}) async {
  Map<String, dynamic>? args;
  if (options != null) args = options.toMap();

  final result = await _methodChannel.invokeMethod(
      MethodChannelEvent.startNavigation, args);
  if (result is bool) return result;
  log(result.toString());
  return result;
}