Dart Flutter Union String types

前端 未结 0 452
终归单人心
终归单人心 2020-12-30 00:16

In typescript if I want to make sure a variable is \'this\' or \'that\' I would do:

type ThisThat = \'this\'|\'that\'

I could then use this t

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