【发布时间】:2021-09-23 09:43:34
【问题描述】:
我的消息有错误,我看到每个人都使用它来显示错误,但我只是收到一个错误:getter 'message' 没有为类型 'Object' 定义。
Future<String> logInUserWithEmail(String email, String password) async {
String retVal = 'error';
//code
retVal = 'success';
} catch (e) {
retVal = e.message; //<-- this here shows the error
}
return retVal;
} }
他们最近是否更改了它,或者有什么问题?
【问题讨论】: