double? GetDouble(String key) { final value = GetCookie(key); return value == null ? null : double.tryParse(value); }