Timeago.fromDuration constructor

Timeago.fromDuration(
  1. Duration duration, {
  2. String? code,
  3. bool showSeconds = true,
  4. bool showMinutes = true,
  5. bool showHours = true,
  6. bool showDays = true,
  7. bool showWeeks = false,
  8. bool showMonths = true,
  9. bool showYears = true,
})

Implementation

Timeago.fromDuration(this.duration,
    {this.code,
    this.showSeconds = true,
    this.showMinutes = true,
    this.showHours = true,
    this.showDays = true,
    this.showWeeks = false,
    this.showMonths = true,
    this.showYears = true});