已失效的 pub 命令和功能
从 Dart 2 开始,pub 不再支持 pub build
、pub serve
以及变换器。它们均由 build_runner 工具中的 build system 替代。
有关在 Dart 2 中构建和提供应用的更多信息请查阅:
获取从 Dart 1 切换到 Dart 2 的帮助请查阅:
Google uses cookies to deliver its services, to personalize ads, and to analyze traffic. You can adjust your privacy controls anytime in your Google settings. Learn more.
Dart 3 已发布!带来了全新的
记录类型 (records)、
模式匹配 (patterns)
以及 类型修饰符 (class modifiers)。
从 Dart 2 开始,pub 不再支持 pub build
、pub serve
以及变换器。它们均由 build_runner 工具中的 build system 替代。
有关在 Dart 2 中构建和提供应用的更多信息请查阅:
获取从 Dart 1 切换到 Dart 2 的帮助请查阅: