getCookie static method
Returns the value of the cookie with name, or null if not found.
Implementation
static String? getCookie(String name) {
final allCookies = impl.cookies;
if (allCookies.isEmpty) return null;
for (final part in allCookies.split(';')) {
final trimmed = part.trim();
if (trimmed.startsWith('$name=')) {
return Uri.decodeComponent(trimmed.substring('$name='.length));
}
}
return null;
}