contentLength property

int? get contentLength

Gets Content-Length header as int.

Implementation

int? get contentLength {
  final value = get('content-length');
  return value != null ? int.tryParse(value) : null;
}