ObjectId class

Inheritance

Constructors

ObjectId({bool clientMode = false})
ObjectId.fromBsonBinary(BsonBinary id)
ObjectId.fromHexString(String hexString)
factory
ObjectId.fromSeconds(int seconds, [bool clientMode = false])

Properties

dateTime DateTime
read-only
hashCode int
The hash code for this object. [...]
read-only, override
id BsonBinary
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
typeByte int
read-only, override
value → dynamic
read-only, override

Methods

byteLength() int
override
createId(int seconds, bool clientMode) BsonBinary
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
packElement(String name, dynamic buffer) → dynamic
inherited
packValue(BsonBinary buffer) → dynamic
override
toHexString() String
toJson() String
toString() String
A string representation of this object. [...]
override
unpackElement(dynamic buffer) → _ElementPair
inherited
unpackValue(BsonBinary buffer) → dynamic
override

Operators

operator ==(dynamic other) bool
The equality operator. [...]
override

Static Methods

parse(String hexString) ObjectId