为什么我要给Unhandled Exception: NoSuchMethodError: The method 'toMap' was called on null这个错误。我被困在这里,但我不能理解我的错误。我认为model类的实例没有得到,但我知道为什么会发生这种情况。 模型类 class AddressModel {
int _id;
String _pin;
AddressModel(this._pin);
int get id => _id;
set id(int value) {
this._id = value;