getName method

String? getName(
  1. int index
)

Get name of the route specified by index.

Route name is the unique identifier of a route.

Parameters

  • IN index The index of the route in the current sort order.

Returns

  • The route name if it exists, null otherwise

Throws

  • An exception if it fails

Implementation

String? getName(final int index) {
  final OperationResult resultString = objectMethod(
    _pointerId,
    'RouteBookmarks',
    'getName',
    args: index,
  );

  final GemError err =
      GemErrorExtension.fromCode(resultString.data['gemApiError']);

  if (err != GemError.success) {
    return null;
  }

  return resultString['result'];
}