GetTimeAgo class
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
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
Static Methods
-
parse(
DateTime dateTime, {String? locale, String? pattern}) → String -
parse formats provided
dateTime
to a formatted time like 'a minute ago'. -
setCustomLocaleMessages(
String customLocale, Messages customMessages) → void -
Sets a
customLocale
with the providedcustomMessages
to be available when using the parse function. -
setDefaultLocale(
String locale) → void -
Sets the default
locale
. By default it isen
.