Is there a way in dart to assign a value dynamically as int and as String

后端 未结 0 808
盖世英雄少女心
盖世英雄少女心 2021-01-05 07:16

I work on a flutter project, and i wonder if there is a way to do as following in typescript but in dart:

class Foo {myVar: string | number} //in typescript
<         


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