TimeId class
- Inheritance
-
- Object
- ValueObject<
String> - UniqueId
- TimeId
Constructors
- TimeId()
-
Creates a TimeId by concatenating
DateTime.now()
with a random string separated by an astrisk.factory -
TimeId.fromJson(Map<
String, dynamic> map, {String? key}) -
Returns a valid TimeId object.
factory
- TimeId.withTime(DateTime time, {String? randStr})
-
factory
Properties
- createTime → DateTime
-
Returns the creation time of
this
no setter - hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- value → String
-
finalinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
{String? key}) → Map< String, String> -
override
-
toString(
) → String -
Returns the object's valid value as a String
inherited
Operators
-
operator ==(
Object o) → bool -
The equality operator.
inherited