Are objects passed as reference points if they are used as arguments in a function in Dart? If so, why doesn't this code work?

后端 未结 0 1423
攒了一身酷
攒了一身酷 2020-11-30 08:15
enum Size{
  small,
  big,
}

class SizeWrap{
  Size size;
  
  SizeWrap(this.size);
  
}

void change(SizeWrap one, SizeWrap two){
  //one=two;
  one=SizeWrap(Size.         


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