sign method Null safety

void sign(
  1. AWSRequest request,
  2. {DateTime? overrideDate}
)

Signs the given request by adding the signature to 'Authorization' header.

Signing date can be overriden with overrideDate.

Implementation

void sign(
  AWSRequest request, {
  DateTime? overrideDate,
}) {
  _sign(request, overrideDate, null, true);
}