BifrostDateTime class

Convert Bifrost block time (secondsSinceEpoch in UTC) to DateTime and back.

Inheritance

Constructors

BifrostDateTime()
const

Properties

decoder Converter<DateTime, int>
Returns the decoder of this, converting from T to S.
final
encoder Converter<int, DateTime>
Returns the encoder from S to T.
final
hashCode int
The hash code for this object.
no setterinherited
inverted Codec<DateTime, int>
Inverts this.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

decode(DateTime encoded) int
Decodes encoded data.
override
encode(int input) DateTime
Encodes input.
override
fuse<R>(Codec<DateTime, R> other) Codec<int, R>
Fuses this with other.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited