Questions tagged «dart-mirrors»

6
如何在Dart中执行运行时类型检查?
Dart规范指出: 修饰的类型信息反映了运行时对象的类型,并且始终可以通过动态类型检查构造(其他语言中的instanceOf,casts,typecase等类似物)查询。 听起来不错,但没有instanceof类似运算符。那么我们如何在Dart中执行运行时类型检查?有可能吗?
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.