void mergeCookies(List<Cookie> cookies) { for (var cookie in cookies) { this.cookies!.removeWhere((x) => x.name == cookie.name); this.cookies!.add(cookie); } }