getTimestamp method

DateTime getTimestamp(
  1. int index
)

Get timestamp of the route specified by index.

Parameters

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

Returns

  • The route timestamp

Throws

  • An exception if it fails.

Implementation

DateTime getTimestamp(final int index) {
  final OperationResult resultString = objectMethod(
    _pointerId,
    'RouteBookmarks',
    'getTimestamp',
    args: index,
  );

  return DateTime.fromMillisecondsSinceEpoch(
    resultString['result'],
    isUtc: true,
  );
}