Explorar el Código

1.添加缓存清楚方法

tags/0.0.9+9
“yanghuaxuan” hace 3 años
padre
commit
719a23283b
Se han modificado 1 ficheros con 5 adiciones y 0 borrados
  1. +5
    -0
      lib/util/shared_prefe_util.dart

+ 5
- 0
lib/util/shared_prefe_util.dart Ver fichero

@@ -49,4 +49,9 @@ class SharedPreferencesUtil {
}
return defaultVal;
}

static Future<bool> clean() async {
SharedPreferences prefs = await SharedPreferences.getInstance();
return await prefs.clear();
}
}

Cargando…
Cancelar
Guardar