Timeago class

Constructors

Timeago(DateTime startAt, DateTime endAt, {String? code, bool showSeconds = true, bool showMinutes = true, bool showHours = true, bool showDays = true, bool showWeeks = false, bool showMonths = true, bool showYears = true})
Timeago.fromDuration(Duration duration, {String? code, bool showSeconds = true, bool showMinutes = true, bool showHours = true, bool showDays = true, bool showWeeks = false, bool showMonths = true, bool showYears = true})
Timeago.since(DateTime since, {String? code, bool showSeconds = true, bool showMinutes = true, bool showHours = true, bool showDays = true, bool showWeeks = false, bool showMonths = true, bool showYears = true})

Properties

code String?
final
duration Duration
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showDays bool
final
showHours bool
final
showMinutes bool
final
showMonths bool
final
showSeconds bool
final
showWeeks bool
final
showYears bool
final

Methods

format({bool isFull = false, String? seprator, String monthFormat(DateTimeFormat)?, String yearFormat(DateTimeFormat)?}) → dynamic
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