Flutter 專案生成 API 文件

在 命令提示字元、Android Studio 或 VSCode 的終端機介面,輸入以下指令即可:

  1. 切換到專案所在目錄
  2. 取得當前專案目錄底下的相關資訊:dart pub get
  3. 確保沒有錯誤:dart analyze
  4. 產生API文件到專案所在目錄的 ./doc 資料夾中:dart doc .

留言

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.