discontinuedPackage zikzak_session has been discontinued and replaced by zuraffa_session.

compareToCookieEntry method

Map<String, dynamic> compareToCookieEntry(
  1. CookieEntry other
)

Implementation

Map<String, dynamic> compareToCookieEntry(CookieEntry other) {
  final Map<String, dynamic> diff = {};

  if (name != other.name) {
    diff['name'] = () => other.name;
  }

  if (value != other.value) {
    diff['value'] = () => other.value;
  }

  if (domain != other.domain) {
    diff['domain'] = () => other.domain;
  }

  if (path != other.path) {
    diff['path'] = () => other.path;
  }

  if (expiresAt != other.expiresAt) {
    diff['expiresAt'] = () => other.expiresAt;
  }

  if (secure != other.secure) {
    diff['secure'] = () => other.secure;
  }

  if (httpOnly != other.httpOnly) {
    diff['httpOnly'] = () => other.httpOnly;
  }
  return diff;
}