Timetoken class Basic Features

Represents a timetoken value returned and required by most PubNub APIs.

Constructors

Timetoken(BigInt value)
const
Timetoken.fromDateTime(DateTime dateTime)
Creates a Timetoken from DateTime.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value BigInt
The actual value of the Timetoken. It's a number of nanoseconds since the epoch.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDateTime() DateTime
Converts Timetoken to a DateTime.
toString() String
Returns a string representation of this Timetoken.
override

Operators

operator ==(Object other) bool
Timetokens are compared based on their value.
override