flutter_in_action_2nd
flutter_in_action_2nd copied to clipboard
第一章 1.4.6中对Dart语言描述有歧义
Dart vs JavaScript 小节中:
正因如此,在 Flutter中,Dart 几乎放弃了脚本语言动态化的特性,如不支持反射、也不支持动态创建函数等。
Dart语言本身是支持反射的,只是Flutter考虑到移动端包大小问题放弃了支持反射特性。 这里有官方的解释:https://docs.flutter.dev/resources/faq#does-flutter-come-with-a-reflection--mirrors-system。