modify method

Expression<DateTime> modify(
  1. DateTimeModifier modifier
)

Apply a modifier that alters the date and/or time.

See the factories on DateTimeModifier for a list of modifiers that can be used with this method.

Implementation

Expression<DateTime> modify(DateTimeModifier modifier) {
  return _DependingOnDateTimeExpression(
    forTimestamps: FunctionCallExpression(
        'unixepoch', [this, const DateTimeModifier._unixEpoch(), modifier]),
    forIsoString: FunctionCallExpression('datetime', [this, modifier]),
  );
}