Dart 类中的static成员何时初始化

649 阅读1分钟

参考官方文档

Static variables aren’t initialized until they’re used. 静态成员在使用时才会初始化

更详细的可以参考这篇文章