startPreferences static method
Inicializa las preferencias compartidas con valores por defecto si aún no existen.
Implementation
static Future<void> startPreferences() async {
preferences = await SharedPreferences.getInstance();
if (preferences.getKeys().isEmpty) {
await preferences.setInt("idSession", -1);
await preferences.setInt("idUser", -1);
await preferences.setString("sessionName", "");
await preferences.setString("creationDate", "");
await preferences.setInt("idCubeType", -1);
}
}