toReqHeader property Null safety

String toReqHeader

Returns a String representation that can be written directly to http.Request 'cookie' header

Implementation

String get toReqHeader {
  final sb = StringBuffer();

  //TODO encode all

  sb.write(name);
  sb.write('=');
  if (value is String) sb.write(value);

  return sb.toString();
}