has static method

Future<bool> has(
  1. String name
)

Returns true if a cookie with name exists and has a non-empty value.

Implementation

static Future<bool> has(String name) async {
  final value = await getValue(name);
  return value != null && value.isNotEmpty;
}