setExpires method

void setExpires(
  1. DateTime date
)

set expiration date

Implementation

void setExpires(DateTime date) {
  policy['expiration'] = date.toIso8601String();
}