How to elegant copy an object from superclass object in flutter?

后端 未结 0 1415
南方客
南方客 2021-02-14 11:33
class BaseObject {
     int x;
}
class SubObject extend BaseObject  {
     int y;
}
BaseObject baseobj;
SubObject subobj;
//copy property from baseobj one by one.
subobj         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题