add toString

This commit is contained in:
Valentin CZERYBA 2022-09-17 22:44:33 +02:00
parent beea120e04
commit c2e260293c

View File

@ -54,12 +54,12 @@ class _LoginDemoState extends State<LoginDemo> with ShowErrorDialog {
switch (cookie2.split("=")[0]) { switch (cookie2.split("=")[0]) {
case "jwt": case "jwt":
{ {
prefs.setString("jwt", cookie2); prefs.setString("jwt", cookie2.toString());
} }
break; break;
case "user": case "user":
{ {
prefs.setString("user", cookie2); prefs.setString("user", cookie2.toString());
} }
break; break;
default: default: