toSetCookie static method Null safety

String toSetCookie(
  1. Iterable<ClientCookie> cookies
)

Returns a String representation that can be directly written to 'set-cookie' header

Implementation

static String toSetCookie(Iterable<ClientCookie> cookies) =>
    cookies.where((c) => !c.hasExpired).join(',');