Timestamp class
- Annotations
-
- @freezed
Constructors
- Timestamp.new({@Default(0) int seconds, @Default(0) int nanoseconds})
-
constfactory
- Timestamp.fromDateTime(DateTime dateTime)
-
factory
-
Timestamp.fromJson(Map<
String, dynamic> json) -
factory
Properties
-
copyWith
→ $TimestampCopyWith<
Timestamp> -
Create a copy of Timestamp
with the given fields replaced by the non-null parameter values.
no setterinherited
- dateTime → DateTime
-
no setter
- fromMicrosecondsSinceEpoch → int
-
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- nanoseconds → int
-
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- seconds → int
-
no setterinherited
Methods
-
add(
Duration duration) → Timestamp -
difference(
Timestamp other) → Duration -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Serializes this Timestamp to a JSON map.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited