How to assign specific string value as type in dart

后端 未结 0 1663
我寻月下人不归
我寻月下人不归 2021-01-20 20:05

Coming from typescript I was used to assign specific string values as types to class properties like so:

type MyType = \'foo\' | \'bar\';
class MyClass {
             


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