getETag method

String? getETag(
  1. Asset asset,
  2. DateTime lastModified,
  3. int assetSize
)

Returns the value of the ETag header.

  • If null is returned, ETag header won't be generated.
  • Default: a string combining lastModified and assetSize
  • if useETag is true.
  • You can override this method if necessary.

Implementation

String? getETag(Asset asset, DateTime lastModified, int assetSize)
=> useETag ? _getETag(lastModified, assetSize): null;