userInit static method

void userInit()

Implementation

static void userInit() {
  var store = GetStorage();
  updatePrefs(User(
    tag: store.read("store") ?? "",
    name: store.read("name") ?? "",
    roomId: store.read("room_id") ?? -1,
    doomId: store.read("doom_id") ?? -1,
    location: store.read("location") ?? "",
    state: store.read("state") ?? "",
    token: store.read("token") ?? "error in updatePrefs",
  ));
}