TimeAgo class
Represents a time interval relative to the current time.
Constructors
- TimeAgo({required int value, required TimeAgoType type})
-
Constructs a TimeAgo object with the given
value
andtype
.
Properties
- en → String
-
Returns a string representing the time interval in English.
no setter
- es → String
-
Returns a string representing the time interval in Spanish.
no setter
- fr → String
-
Returns a string representing the time interval in French.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- pt → String
-
Returns a string representing the time interval in Portuguese.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → TimeAgoType
-
The type of time interval.
final
- value → int
-
The value of the time interval.
final
Methods
-
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