在Java中,我们使用final关键字和变量来指定它的值不被改变。但是我发现你可以改变类的构造函数/方法中的值。再次,如果变量是static那么这是一个编译错误。这里是代码:
import java.util.List;
private final List foo;现在改变变量为static:
private static final List foo;
Local/Pub/Cache/hosted/pub.flutter-io.cn/tdesign_flutter-0.2.7/lib/src/components/icon/td_icons.dart:7:28: Error: The class 'IconData' can't be extended outside of its library because it's a final
class.看了下源码,fl