to method

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

Returns the string of relative time to day.

The second parameter is optional. Setting withoutPrefix to true removes the prefix (for example, "in").

Implementation

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