has method

bool has(
  1. String name
)

Whether a cookie named name is currently visible.

Implementation

bool has(String name) {
  return read(name) != null;
}