getTimestamp method
UTC timestamp of when the route was saved.
Parameters
index: Index of the route in the current sort order.
Returns
DateTime?: UTC timestamp when the route was saved, ornullif not available.
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,
);
}