to method

String to(
  1. Day day, [
  2. bool withoutPrefix = false
])

Returns the string of relative time to day.

The second param is optional, by set withoutPrefix to true, it will remove the prefix(in).

Implementation

String to(Day day, [bool withoutPrefix = false]) =>
    _relativeTimeExec(day, withoutPrefix, false);