getCookie method

Future<String?> getCookie(
  1. String name
)

Get a specific cookie by name Returns the cookie value or null if not found

Implementation

Future<String?> getCookie(String name) async {
  final cookies = await getCookies();
  return cookies[name];
}