timeStamp property
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
- DateTime: The timestamp in UTC.
Implementation
DateTime get timeStamp {
final OperationResult resultString = objectMethod(
pointerId,
'Landmark',
'getTimeStamp',
);
return DateTime.fromMillisecondsSinceEpoch(
resultString['result'],
isUtc: true,
);
}
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,
);
}