getUsuario static method
retorna o usuario
Implementation
static Future<Map<String, dynamic>?> getUsuario() async {
SharedPreferences preferences = await SharedPreferences.getInstance();
final res = preferences.getString('usuario');
if (res != null && res.isNotEmpty) {
return json.decode(res);
}
return null;
}