timeStamp property

DateTime get timeStamp

Returns the timestamp when this landmark was created or last updated.

If a user-defined timestamp is not set, it typically reflects the insertion time into the landmark store. The returned value is in UTC.

Returns

Implementation

DateTime get timeStamp {
  final OperationResult resultString = objectMethod(
    pointerId,
    'Landmark',
    'getTimeStamp',
  );

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

Sets the timestamp for this landmark.

Parameters

  • time: DateTime object representing the timestamp.

Implementation

set timeStamp(final DateTime time) {
  objectMethod(
    pointerId,
    'Landmark',
    'setTimeStamp',
    args: time.millisecondsSinceEpoch,
  );
}