set static method

void set(
  1. String name,
  2. String value, {
  3. String? domain,
  4. String? path,
  5. DateTime? expires,
  6. Duration? maxAge,
  7. bool? secure,
})

Implementation

static void set(
  String name,
  String value, {
  String? domain,
  String? path,
  DateTime? expires,
  Duration? maxAge,
  bool? secure,
}) => cookie.set(
  name,
  value,
  expires: expires,
  maxAge: maxAge,
  path: path,
  domain: domain,
);