已失效的 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 的幫助請查閱: