getTimestamp method
- 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 if it exists, null otherwise.
Throws
- An exception if it fails.
Implementation
DateTime? getTimestamp(final int index) {
final OperationResult resultString = objectMethod(
_pointerId,
'RouteBookmarks',
'getTimestamp',
args: index,
);
final GemError err =
GemErrorExtension.fromCode(resultString.data['gemApiError']);
if (err != GemError.success) {
return null;
}
return DateTime.fromMillisecondsSinceEpoch(
resultString['result'],
isUtc: true,
);
}