这是我的代码
SharedPreferences sharedPreferences;
token() async {
sharedPreferences = await SharedPreferences.getInstance();
return "Lorem ipsum dolor";
}
Run Code Online (Sandbox Code Playgroud)
打印时,我在调试控制台上收到此消息
Instance of 'Future<dynamic>'
Run Code Online (Sandbox Code Playgroud)
我如何获得“lorem ipsum ...”的字符串?太感谢了