parseCookieValue static method
Extracts the value of a cookie.
Example input: "datadome=xxxx; path=/; HttpOnly"
Example output: "xxxx"
cookie
: The cookie string to parse.- Returns the cookie value as a String.
Implementation
static String parseCookieValue(String cookie) {
var cookieVal = cookie.split(";").first;
return cookieVal.split("=").last;
}