} 和 final String param = "login=$username&password=$password"; 我像这样创建了我的函数,并且总是得到"NoSuchMethodError:方法'post‘是在null上调用的。Dart Error: Unhandled exception:
E/flutter ( 7161): NoSuchMethodError: The method 'post' was called on <em
当我运行代码时,它应该打印出空列表,但它没有,当我添加一个新事务时,这个错误在模拟器中显示出来 NoSuchMethodError: The methos '+' was called on Null.Receiver: null. Tried Calling: +(100) 我一点也不知道出了什么问题。