getContentLength method

int? getContentLength()

Gets the content length from headers

Implementation

int? getContentLength() {
  final lengthStr = getHeader(StompHeaders.contentLength);
  if (lengthStr == null) return null;
  return int.tryParse(lengthStr);
}