Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我遇到了 account.get 映射到我的用户模型以获得 getUser 函数的情况
Future<User> getUser() async { final res = await account.get(); return User.fromMap(res.data); }
res.data 是错误的,说 getter 没有定义