getMode method

Future<Mode> getMode({
  1. Map<String, dynamic>? extra,
})

Get the Mode the service is operating in.

For more information, see the navigation service docs.

Implementation

Future<Mode> getMode({Map<String, dynamic>? extra}) async {
  final request = GetModeRequest(name: name, extra: extra?.toStruct());
  final response = await client.getMode(request, options: callOptions);
  return response.mode;
}