timeStamp property

DateTime get timeStamp

Get the timestamp in UTC.

If no value is set by the user, the timestamp will be set to current time when the landmark is inserted in a landmark store.

Throws

  • An exception if it fails.

Implementation

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

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

Set the timestamp.

Parameters

Throws

  • An exception if it fails.

Implementation

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