steps top-level constant

List<TimeAgoStep> const steps

Twitter-style steps: seconds, minutes, hours, then localized dates.

Implementation

const steps = <TimeAgoStep>[
  TimeAgoStep.unit(TimeAgoUnit.second),
  TimeAgoStep.unit(TimeAgoUnit.minute),
  TimeAgoStep.unit(TimeAgoUnit.hour),
  TimeAgoStep.custom(
    minTimeResolver: _monthDayMin,
    formatter: _monthDay,
  ),
  TimeAgoStep.custom(
    minTimeResolver: _yearMonthDayMin,
    formatter: _yearMonthDay,
    nextUpdate: _dateNeverUpdates,
  ),
];