Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 Java 中,我们知道创建密封类。如果我们将 final 与类一起使用,则没有人可以扩展此类。在 Dart 中没有任何选择。我们可以扩展每个类。如果我们扩展每个类,那么我们怎么不能扩展 Dart 内置的类呢?