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.

menu
Dart
  • 概覽
  • 文件
  • 社群
  • 嘗試 Dart
  • 獲取 Dart SDK

Dart 3 已釋出!帶來了全新的 記錄型別 (records)、 模式匹配 (patterns) 以及 型別修飾符 (class modifiers)。

  • 概覽
  • 社群
  • 嘗試 Dart
  • 獲取 Dart SDK
  • 文件
  • 範例和課程
    • 語言概覽
    • Codelabs
      • Codelabs 列表
      • Dart 速查表
      • 可迭代集合
      • Dart 非同步程式設計
      • 空安全
  • Dart 開發語言
    • 介紹
    • 基礎表示式
      • 變數
      • 運運算元
      • 註釋
      • 註解
      • 庫 & 導庫
      • 關鍵字
    • 型別
      • 基本型別
      • 記錄 (Records)
      • 集合 (Collections)
      • 泛型 (Generics)
      • 別名 (Typedefs)
      • 型別系統
    • 模式匹配
      • 概覽 & 用法
      • 模式匹配型別
    • 函式方法
    • 控制流
      • 迴圈
      • 分支
    • 錯誤處理
    • 類 & 物件
      • 類
      • 構造方法
      • 成員方法
      • 繼承
      • 混入 (Mixin)
      • 列舉
      • 擴充方法
      • 可呼叫的物件
    • 型別修飾符
      • 概覽 & 用法
      • API 維護者應該用的型別修飾符
      • 速查表
    • 併發
      • 非同步支援
      • Isolates
    • Null safety
      • 健全的空安全
      • 遷移到空安全
      • 深入理解空安全
      • 非健全的空安全
      • 空安全常見問題和解答
  • 高效指南 (Effective Dart)
    • 概述
    • 程式碼風格
    • 文件
    • 用法範例
    • API 設計
  • 核心函式庫
    • 概覽
    • 概覽
    • 介紹文章
      • 建立 stream
  • Packages
    • 如何使用 package
    • 常用 package 介紹
    • 建立 package
    • 釋出 package
    • 設定 package 介紹頁
    • Package 參考資料
      • 依賴
      • 術語表
      • Package 檔案結構
      • 設定環境變數
      • Pubspec 檔案
      • 問題排查
      • 釋出者認證
      • 版本管理
  • 開發文件
    • Futures、async 和 await
    • Streams 介紹
    • 使用 JSON
    • Dart 中的數字
    • 與其他語言進行互動呼叫
      • 與 C 互調
      • 與 Objective-C 和 Swift 互調
      • 與 Java 和 Kotlin 互調
      • 與 JavaScript 互調
    • Google APIs
    • 跨平臺應用
    • 命令列和伺服器端應用
      • 概覽
      • 起步課程
      • 命令列應用
      • 從網路上獲取資料
      • 編寫 HTTP 伺服器端應用
      • 庫和 package
      • Google Cloud
    • 網頁端 (Web) 應用
      • 概覽
      • 開始使用
      • 底層 Web 程式設計
        • Dart 與 HTML 關聯
        • 向 DOM 新增元素
        • 移除 DOM 元素
      • 部署
      • 常用 Web 函式庫和 package
    • 環境變數宣告
  • 開發工具和使用技巧
    • 概覽
    • 編輯器和除錯工具
      • 使用 IntelliJ 和 Android Studio
      • 使用 VS Code
      • Dart 開發者工具
      • 線上執行 Dart 程式碼
        • Overview
        • DartPad 課程
        • DartPad 疑難解答
    • 命令列工具
      • Dart SDK
        • 概覽
        • dart 命令
        • dart analyze 命令
        • dart compile 命令
        • dart create 命令
        • dart doc 命令
        • dart fix 命令
        • dart format 命令
        • dart info 命令
        • dart pub 命令
        • dart run 命令
        • dart test 命令
        • dartaotruntime 命令
        • 實驗性命令標記
      • 其他的命令列工具
        • build_runner 命令
        • webdev 命令
    • 原始碼管理
      • 程式碼格式化
      • 不應提交的內容
    • 靜態分析
      • 自訂靜態分析
      • 修復常見的型別問題
      • 診斷訊息
      • Linter 規則
    • 測試和調優
      • 測試
      • 除錯 Web 應用
  • 資源
    • 常見問題
    • 版本演變
    • 語言規範
    • Dart 3 遷移指南
    • 從其他平台轉向 Dart
      • 從 JavaScript 到 Dart
      • 從 Swift 到 Dart
    • 詞彙表
    • 書籍資源
    • 影片資源
  • 相關站點
    • API 文件 open_in_new
    • Dart 團隊官方部落格 open_in_new
    • DartPad (線上編輯器) open_in_new
    • Flutter open_in_new
    • Package 網站 open_in_new
  • 關於 Dart 中文文件
    • 關於本站 open_in_new
    • 免責條款 (Disclaimer) open_in_new
description bug_report

Sitemap

  • All linter rules
    /tools/linter-rules/all.html
  • 自訂靜態分析
    /tools/analysis.html
  • 非同步程式設計:使用 Future 和 async-await
    /codelabs/async-await.html
  • Asynchrony support
    /language/async.html
  • Automated publishing of packages to pub.dev
    /tools/pub/automated-publishing.html
  • 與 Dart 相關的書籍
    /resources/books.html
  • Branches
    /language/branches.html
  • Dart 品牌指南
    /brand.html
  • build_runner 命令
    /tools/build_runner.html
  • Built-in types
    /language/built-in-types.html
  • Native extensions for the standalone Dart VM
    /server/c-interop-native-extensions.html
  • Callable objects
    /language/callable-objects.html
  • Class modifiers for API maintainers
    /language/class-modifiers-for-apis.html
  • Class modifiers
    /language/class-modifiers.html
  • Classes
    /language/classes.html
  • 行為準則
    /community/code-of-conduct.html
  • Collections
    /language/collections.html
  • Comments
    /language/comments.html
  • Constructors
    /language/constructors.html
  • Custom package repositories
    /tools/pub/custom-package-repositories.html
  • Dart 3 migration guide
    /resources/dart-3-migration.html
  • dart analyze
    /tools/dart-analyze.html
  • Dart 速查表 codelab
    /codelabs/dart-cheatsheet.html
  • dart compile
    /tools/dart-compile.html
  • dart create
    /tools/dart-create.html
  • Dart 開發者工具
    /tools/dart-devtools.html
  • dart doc 命令
    /tools/dart-doc.html
  • dart fix
    /tools/dart-fix.html
  • dart format 命令(用於格式化 Dart 程式碼的命令)
    /tools/dart-format.html
  • dart info
    /tools/dart-info.html
  • dart run 命令
    /tools/dart-run.html
  • Dart team packages
    /resources/dart-team-packages.html
  • dart test
    /tools/dart-test.html
  • dart: The Dart command-line tool
    /tools/dart-tool.html
  • DartVM 執行環境
    /tools/dart-vm.html
  • dart2aot 命令 (以 AOT 模式執行 Dart 程式碼)
    /tools/dart2aot.html
  • dart2js 命令 (Dart 產生 JS 編譯器)
    /tools/dart2js.html
  • dartaotruntime
    /tools/dartaotruntime.html
  • dartdevc:Dart 開發編譯器
    /tools/dartdevc.html
  • DartPad 最佳實踐課程
    /tools/dartpad/dartpad-best-practices.html
  • 除錯 Dart Web 應用
    /web/debugging.html
  • Package 依賴
    /tools/pub/dependencies.html
  • 部署 Web 應用
    /web/deployment.html
  • 高效 Dart 語言指南:API 設計
    /effective-dart/design.html
  • Diagnostic messages
    /tools/diagnostic-messages.html
  • 高效 Dart 語言指南:文件
    /effective-dart/documentation.html
  • Enumerated types
    /language/enums.html
  • 為 pub 命令配置環境變數
    /tools/pub/environment-variables.html
  • Error handling
    /language/error-handling.html
  • 實驗性的引數標記
    /tools/experiment-flags.html
  • Extend a class
    /language/extend.html
  • Extension 方法
    /language/extension-methods.html
  • Dart 常見問題和解答
    /resources/faq.html
  • 空安全:常見問題
    /null-safety/faq.html
  • Functions
    /language/functions.html
  • Generics
    /language/generics.html
  • Glossary
    /resources/glossary.html
  • Package 術語表
    /tools/pub/glossary.html
  • Using Google Cloud
    /server/google-cloud.html
  • Dart 部落格測試文章
    /posts/hello_cn.html
  • Dart 程式語言主頁 | Dart 中文文件
    /
  • 社群和支援
    /community
  • 資源
    /resources/
  • dart pub 工具
    /tools/pub/cmd/
  • Linter rules
    /tools/linter-rules/
  • DartPad 線上工具
    /tools/dartpad/
  • Dart 的開發工具
    /tools/
  • Dart codelabs 列表
    /codelabs/
  • Web 平台
    /web/
  • Dart 中的併發
    /language/concurrency/
  • Dart 簡介
    /language/
  • 命令列和伺服器端應用
    /server/
  • 高效 Dart 語言指南
    /effective-dart/
  • Dart SDK 歸檔
    /get-dart/archive/
  • 獲取 Dart SDK
    /get-dart/
  • 深入理解空安全
    /null-safety/understanding-null-safety/
  • 健全的空安全
    /null-safety/
  • 可迭代集合
    /codelabs/iterables.html
  • 使用 IntelliJ 和 Android Studio 開發 Dart 應用
    /tools/jetbrains-plugin.html
  • Web 上與 JavaScript 互調
    /web/js-interop.html
  • Keywords
    /language/keywords.html
  • 常用 Web 函式庫和 package
    /web/libraries.html
  • Libraries & imports
    /language/libraries.html
  • 命令列和伺服器的函式庫和 Package
    /server/libraries.html
  • Loops
    /language/loops.html

  • /assets/css/main.css
  • Sitemap
    /map
  • Metadata
    /language/metadata.html
  • Methods
    /language/methods.html
  • 遷移至空安全
    /null-safety/migration-guide.html
  • Mixins
    /language/mixins.html
  • Class modifiers reference
    /language/modifier-reference.html
  • Multi-platform apps
    /multiplatform-apps.html
  • Fixing type promotion failures
    /tools/non-promotion-reasons.html
  • Null safety codelab
    /codelabs/null-safety.html
  • 已失效的 pub 命令和功能
    /tools/pub/obsolete.html
  • Operators
    /language/operators.html
  • Dart 概覽
    /overview.html
  • Package 的檔案結構
    /tools/pub/package-layout.html
  • Pattern types
    /language/pattern-types.html
  • Patterns
    /language/patterns.html
  • 隱私權宣告
    /tools/dartpad/privacy.html
  • dart pub add
    /tools/pub/cmd/pub-add.html
  • dart pub cache
    /tools/pub/cmd/pub-cache.html
  • dart pub deps
    /tools/pub/cmd/pub-deps.html
  • dart pub downgrade 命令
    /tools/pub/cmd/pub-downgrade.html
  • dart pub get 命令
    /tools/pub/cmd/pub-get.html
  • dart pub global 命令
    /tools/pub/cmd/pub-global.html
  • dart pub publish
    /tools/pub/cmd/pub-lish.html
  • dart pub outdated
    /tools/pub/cmd/pub-outdated.html
  • dart pub remove
    /tools/pub/cmd/pub-remove.html
  • pub run
    /tools/pub/cmd/pub-run.html
  • dart pub token
    /tools/pub/cmd/pub-token.html
  • dart pub upgrade
    /tools/pub/cmd/pub-upgrade.html
  • 釋出 package
    /tools/pub/publishing.html
  • Pubspec 檔案
    /tools/pub/pubspec.html
  • Records
    /language/records.html

  • /robots.txt
  • Dart SDK overview
    /tools/sdk.html
  • 搜尋 Flutter & Dart 社群相關網站
    /search-all.html
  • 搜尋 Flutter & Dart 官方文件資源
    /search.html
  • 安全
    /security.html

  • /sitemap.xml
  • 高效 Dart 語言指南:程式碼風格
    /effective-dart/style.html
  • Terms of use
    /terms
  • Pub 命令問題排查
    /tools/pub/troubleshoot
  • DartPad 問題排查
    /tools/dartpad/troubleshoot.html
  • Dart 語言裡的型別體系
    /language/type-system.html
  • Typedefs
    /language/typedefs.html
  • 非健全的空安全
    /null-safety/unsound-null-safety.html
  • 高效 Dart 語言指南:用法範例
    /effective-dart/usage.html
  • Variables
    /language/variables.html
  • Verified publishers
    /tools/pub/verified-publishers.html
  • Package 的版本管理
    /tools/pub/versioning.html
  • Videos
    /resources/videos.html
  • 使用 Visual Studio Code 開發 Dart 應用
    /tools/vs-code.html
  • webdev 命令
    /tools/webdev.html
  • Who uses Dart
    /community/who-uses-dart.html
  • always_use_package_imports
    /tools/linter-rules/always_use_package_imports.html
  • avoid_dynamic_calls
    /tools/linter-rules/avoid_dynamic_calls.html
  • avoid_empty_else
    /tools/linter-rules/avoid_empty_else.html
  • avoid_print
    /tools/linter-rules/avoid_print.html
  • avoid_relative_lib_imports
    /tools/linter-rules/avoid_relative_lib_imports.html
  • avoid_returning_null_for_future
    /tools/linter-rules/avoid_returning_null_for_future.html
  • avoid_slow_async_io
    /tools/linter-rules/avoid_slow_async_io.html
  • avoid_type_to_string
    /tools/linter-rules/avoid_type_to_string.html
  • avoid_types_as_parameter_names
    /tools/linter-rules/avoid_types_as_parameter_names.html
  • avoid_web_libraries_in_flutter
    /tools/linter-rules/avoid_web_libraries_in_flutter.html
  • cancel_subscriptions
    /tools/linter-rules/cancel_subscriptions.html
  • close_sinks
    /tools/linter-rules/close_sinks.html
  • collection_methods_unrelated_type
    /tools/linter-rules/collection_methods_unrelated_type.html
  • comment_references
    /tools/linter-rules/comment_references.html
  • control_flow_in_finally
    /tools/linter-rules/control_flow_in_finally.html
  • deprecated_member_use_from_same_package
    /tools/linter-rules/deprecated_member_use_from_same_package.html
  • diagnostic_describe_all_properties
    /tools/linter-rules/diagnostic_describe_all_properties.html
  • discarded_futures
    /tools/linter-rules/discarded_futures.html
  • empty_statements
    /tools/linter-rules/empty_statements.html
  • hash_and_equals
    /tools/linter-rules/hash_and_equals.html
  • implicit_reopen
    /tools/linter-rules/implicit_reopen.html
  • invalid_case_patterns
    /tools/linter-rules/invalid_case_patterns.html
  • invariant_booleans
    /tools/linter-rules/invariant_booleans.html
  • iterable_contains_unrelated_type
    /tools/linter-rules/iterable_contains_unrelated_type.html
  • list_remove_unrelated_type
    /tools/linter-rules/list_remove_unrelated_type.html
  • literal_only_boolean_expressions
    /tools/linter-rules/literal_only_boolean_expressions.html
  • no_adjacent_strings_in_list
    /tools/linter-rules/no_adjacent_strings_in_list.html
  • no_duplicate_case_values
    /tools/linter-rules/no_duplicate_case_values.html
  • no_logic_in_create_state
    /tools/linter-rules/no_logic_in_create_state.html
  • no_self_assignments
    /tools/linter-rules/no_self_assignments.html
  • no_wildcard_variable_uses
    /tools/linter-rules/no_wildcard_variable_uses.html
  • prefer_relative_imports
    /tools/linter-rules/prefer_relative_imports.html
  • prefer_void_to_null
    /tools/linter-rules/prefer_void_to_null.html
  • test_types_in_equals
    /tools/linter-rules/test_types_in_equals.html
  • throw_in_finally
    /tools/linter-rules/throw_in_finally.html
  • unnecessary_statements
    /tools/linter-rules/unnecessary_statements.html
  • unrelated_type_equality_checks
    /tools/linter-rules/unrelated_type_equality_checks.html
  • unsafe_html
    /tools/linter-rules/unsafe_html.html
  • use_build_context_synchronously
    /tools/linter-rules/use_build_context_synchronously.html
  • use_key_in_widget_constructors
    /tools/linter-rules/use_key_in_widget_constructors.html
  • valid_regexps
    /tools/linter-rules/valid_regexps.html
  • depend_on_referenced_packages
    /tools/linter-rules/depend_on_referenced_packages.html
  • package_names
    /tools/linter-rules/package_names.html
  • secure_pubspec_urls
    /tools/linter-rules/secure_pubspec_urls.html
  • sort_pub_dependencies
    /tools/linter-rules/sort_pub_dependencies.html
  • always_declare_return_types
    /tools/linter-rules/always_declare_return_types.html
  • always_put_control_body_on_new_line
    /tools/linter-rules/always_put_control_body_on_new_line.html
  • always_put_required_named_parameters_first
    /tools/linter-rules/always_put_required_named_parameters_first.html
  • always_require_non_null_named_parameters
    /tools/linter-rules/always_require_non_null_named_parameters.html
  • always_specify_types
    /tools/linter-rules/always_specify_types.html
  • annotate_overrides
    /tools/linter-rules/annotate_overrides.html
  • avoid_annotating_with_dynamic
    /tools/linter-rules/avoid_annotating_with_dynamic.html
  • avoid_as
    /tools/linter-rules/avoid_as.html
  • avoid_bool_literals_in_conditional_expressions
    /tools/linter-rules/avoid_bool_literals_in_conditional_expressions.html
  • avoid_catches_without_on_clauses
    /tools/linter-rules/avoid_catches_without_on_clauses.html
  • avoid_catching_errors
    /tools/linter-rules/avoid_catching_errors.html
  • avoid_classes_with_only_static_members
    /tools/linter-rules/avoid_classes_with_only_static_members.html
  • avoid_double_and_int_checks
    /tools/linter-rules/avoid_double_and_int_checks.html
  • avoid_equals_and_hash_code_on_mutable_classes
    /tools/linter-rules/avoid_equals_and_hash_code_on_mutable_classes.html
  • avoid_escaping_inner_quotes
    /tools/linter-rules/avoid_escaping_inner_quotes.html
  • avoid_field_initializers_in_const_classes
    /tools/linter-rules/avoid_field_initializers_in_const_classes.html
  • avoid_final_parameters
    /tools/linter-rules/avoid_final_parameters.html
  • avoid_function_literals_in_foreach_calls
    /tools/linter-rules/avoid_function_literals_in_foreach_calls.html
  • avoid_implementing_value_types
    /tools/linter-rules/avoid_implementing_value_types.html
  • avoid_init_to_null
    /tools/linter-rules/avoid_init_to_null.html
  • avoid_js_rounded_ints
    /tools/linter-rules/avoid_js_rounded_ints.html
  • avoid_multiple_declarations_per_line
    /tools/linter-rules/avoid_multiple_declarations_per_line.html
  • avoid_null_checks_in_equality_operators
    /tools/linter-rules/avoid_null_checks_in_equality_operators.html
  • avoid_positional_boolean_parameters
    /tools/linter-rules/avoid_positional_boolean_parameters.html
  • avoid_private_typedef_functions
    /tools/linter-rules/avoid_private_typedef_functions.html
  • avoid_redundant_argument_values
    /tools/linter-rules/avoid_redundant_argument_values.html
  • avoid_renaming_method_parameters
    /tools/linter-rules/avoid_renaming_method_parameters.html
  • avoid_return_types_on_setters
    /tools/linter-rules/avoid_return_types_on_setters.html
  • avoid_returning_null
    /tools/linter-rules/avoid_returning_null.html
  • avoid_returning_null_for_void
    /tools/linter-rules/avoid_returning_null_for_void.html
  • avoid_returning_this
    /tools/linter-rules/avoid_returning_this.html
  • avoid_setters_without_getters
    /tools/linter-rules/avoid_setters_without_getters.html
  • avoid_shadowing_type_parameters
    /tools/linter-rules/avoid_shadowing_type_parameters.html
  • avoid_single_cascade_in_expression_statements
    /tools/linter-rules/avoid_single_cascade_in_expression_statements.html
  • avoid_types_on_closure_parameters
    /tools/linter-rules/avoid_types_on_closure_parameters.html
  • avoid_unnecessary_containers
    /tools/linter-rules/avoid_unnecessary_containers.html
  • avoid_unused_constructor_parameters
    /tools/linter-rules/avoid_unused_constructor_parameters.html
  • avoid_void_async
    /tools/linter-rules/avoid_void_async.html
  • await_only_futures
    /tools/linter-rules/await_only_futures.html
  • camel_case_extensions
    /tools/linter-rules/camel_case_extensions.html
  • camel_case_types
    /tools/linter-rules/camel_case_types.html
  • cascade_invocations
    /tools/linter-rules/cascade_invocations.html
  • cast_nullable_to_non_nullable
    /tools/linter-rules/cast_nullable_to_non_nullable.html
  • combinators_ordering
    /tools/linter-rules/combinators_ordering.html
  • conditional_uri_does_not_exist
    /tools/linter-rules/conditional_uri_does_not_exist.html
  • constant_identifier_names
    /tools/linter-rules/constant_identifier_names.html
  • curly_braces_in_flow_control_structures
    /tools/linter-rules/curly_braces_in_flow_control_structures.html
  • dangling_library_doc_comments
    /tools/linter-rules/dangling_library_doc_comments.html
  • deprecated_consistency
    /tools/linter-rules/deprecated_consistency.html
  • directives_ordering
    /tools/linter-rules/directives_ordering.html
  • do_not_use_environment
    /tools/linter-rules/do_not_use_environment.html
  • empty_catches
    /tools/linter-rules/empty_catches.html
  • empty_constructor_bodies
    /tools/linter-rules/empty_constructor_bodies.html
  • enable_null_safety
    /tools/linter-rules/enable_null_safety.html
  • eol_at_end_of_file
    /tools/linter-rules/eol_at_end_of_file.html
  • exhaustive_cases
    /tools/linter-rules/exhaustive_cases.html
  • file_names
    /tools/linter-rules/file_names.html
  • flutter_style_todos
    /tools/linter-rules/flutter_style_todos.html
  • implementation_imports
    /tools/linter-rules/implementation_imports.html
  • implicit_call_tearoffs
    /tools/linter-rules/implicit_call_tearoffs.html
  • join_return_with_assignment
    /tools/linter-rules/join_return_with_assignment.html
  • leading_newlines_in_multiline_strings
    /tools/linter-rules/leading_newlines_in_multiline_strings.html
  • library_annotations
    /tools/linter-rules/library_annotations.html
  • library_names
    /tools/linter-rules/library_names.html
  • library_prefixes
    /tools/linter-rules/library_prefixes.html
  • library_private_types_in_public_api
    /tools/linter-rules/library_private_types_in_public_api.html
  • lines_longer_than_80_chars
    /tools/linter-rules/lines_longer_than_80_chars.html
  • matching_super_parameters
    /tools/linter-rules/matching_super_parameters.html
  • missing_whitespace_between_adjacent_strings
    /tools/linter-rules/missing_whitespace_between_adjacent_strings.html
  • no_default_cases
    /tools/linter-rules/no_default_cases.html
  • no_leading_underscores_for_library_prefixes
    /tools/linter-rules/no_leading_underscores_for_library_prefixes.html
  • no_leading_underscores_for_local_identifiers
    /tools/linter-rules/no_leading_underscores_for_local_identifiers.html
  • no_literal_bool_comparisons
    /tools/linter-rules/no_literal_bool_comparisons.html
  • no_runtimeType_toString
    /tools/linter-rules/no_runtimeType_toString.html
  • non_constant_identifier_names
    /tools/linter-rules/non_constant_identifier_names.html
  • noop_primitive_operations
    /tools/linter-rules/noop_primitive_operations.html
  • null_check_on_nullable_type_parameter
    /tools/linter-rules/null_check_on_nullable_type_parameter.html
  • null_closures
    /tools/linter-rules/null_closures.html
  • omit_local_variable_types
    /tools/linter-rules/omit_local_variable_types.html
  • one_member_abstracts
    /tools/linter-rules/one_member_abstracts.html
  • only_throw_errors
    /tools/linter-rules/only_throw_errors.html
  • overridden_fields
    /tools/linter-rules/overridden_fields.html
  • package_api_docs
    /tools/linter-rules/package_api_docs.html
  • package_prefixed_library_names
    /tools/linter-rules/package_prefixed_library_names.html
  • parameter_assignments
    /tools/linter-rules/parameter_assignments.html
  • prefer_adjacent_string_concatenation
    /tools/linter-rules/prefer_adjacent_string_concatenation.html
  • prefer_asserts_in_initializer_lists
    /tools/linter-rules/prefer_asserts_in_initializer_lists.html
  • prefer_asserts_with_message
    /tools/linter-rules/prefer_asserts_with_message.html
  • prefer_bool_in_asserts
    /tools/linter-rules/prefer_bool_in_asserts.html
  • prefer_collection_literals
    /tools/linter-rules/prefer_collection_literals.html
  • prefer_conditional_assignment
    /tools/linter-rules/prefer_conditional_assignment.html
  • prefer_const_constructors
    /tools/linter-rules/prefer_const_constructors.html
  • prefer_const_constructors_in_immutables
    /tools/linter-rules/prefer_const_constructors_in_immutables.html
  • prefer_const_declarations
    /tools/linter-rules/prefer_const_declarations.html
  • prefer_const_literals_to_create_immutables
    /tools/linter-rules/prefer_const_literals_to_create_immutables.html
  • prefer_constructors_over_static_methods
    /tools/linter-rules/prefer_constructors_over_static_methods.html
  • prefer_contains
    /tools/linter-rules/prefer_contains.html
  • prefer_double_quotes
    /tools/linter-rules/prefer_double_quotes.html
  • prefer_equal_for_default_values
    /tools/linter-rules/prefer_equal_for_default_values.html
  • prefer_expression_function_bodies
    /tools/linter-rules/prefer_expression_function_bodies.html
  • prefer_final_fields
    /tools/linter-rules/prefer_final_fields.html
  • prefer_final_in_for_each
    /tools/linter-rules/prefer_final_in_for_each.html
  • prefer_final_locals
    /tools/linter-rules/prefer_final_locals.html
  • prefer_final_parameters
    /tools/linter-rules/prefer_final_parameters.html
  • prefer_for_elements_to_map_fromIterable
    /tools/linter-rules/prefer_for_elements_to_map_fromIterable.html
  • prefer_foreach
    /tools/linter-rules/prefer_foreach.html
  • prefer_function_declarations_over_variables
    /tools/linter-rules/prefer_function_declarations_over_variables.html
  • prefer_generic_function_type_aliases
    /tools/linter-rules/prefer_generic_function_type_aliases.html
  • prefer_if_elements_to_conditional_expressions
    /tools/linter-rules/prefer_if_elements_to_conditional_expressions.html
  • prefer_if_null_operators
    /tools/linter-rules/prefer_if_null_operators.html
  • prefer_initializing_formals
    /tools/linter-rules/prefer_initializing_formals.html
  • prefer_inlined_adds
    /tools/linter-rules/prefer_inlined_adds.html
  • prefer_int_literals
    /tools/linter-rules/prefer_int_literals.html
  • prefer_interpolation_to_compose_strings
    /tools/linter-rules/prefer_interpolation_to_compose_strings.html
  • prefer_is_empty
    /tools/linter-rules/prefer_is_empty.html
  • prefer_is_not_empty
    /tools/linter-rules/prefer_is_not_empty.html
  • prefer_is_not_operator
    /tools/linter-rules/prefer_is_not_operator.html
  • prefer_iterable_whereType
    /tools/linter-rules/prefer_iterable_whereType.html
  • prefer_mixin
    /tools/linter-rules/prefer_mixin.html
  • prefer_null_aware_method_calls
    /tools/linter-rules/prefer_null_aware_method_calls.html
  • prefer_null_aware_operators
    /tools/linter-rules/prefer_null_aware_operators.html
  • prefer_single_quotes
    /tools/linter-rules/prefer_single_quotes.html
  • prefer_spread_collections
    /tools/linter-rules/prefer_spread_collections.html
  • prefer_typing_uninitialized_variables
    /tools/linter-rules/prefer_typing_uninitialized_variables.html
  • provide_deprecation_message
    /tools/linter-rules/provide_deprecation_message.html
  • public_member_api_docs
    /tools/linter-rules/public_member_api_docs.html
  • recursive_getters
    /tools/linter-rules/recursive_getters.html
  • require_trailing_commas
    /tools/linter-rules/require_trailing_commas.html
  • sized_box_for_whitespace
    /tools/linter-rules/sized_box_for_whitespace.html
  • sized_box_shrink_expand
    /tools/linter-rules/sized_box_shrink_expand.html
  • slash_for_doc_comments
    /tools/linter-rules/slash_for_doc_comments.html
  • sort_child_properties_last
    /tools/linter-rules/sort_child_properties_last.html
  • sort_constructors_first
    /tools/linter-rules/sort_constructors_first.html
  • sort_unnamed_constructors_first
    /tools/linter-rules/sort_unnamed_constructors_first.html
  • super_goes_last
    /tools/linter-rules/super_goes_last.html
  • tighten_type_of_initializing_formals
    /tools/linter-rules/tighten_type_of_initializing_formals.html
  • type_annotate_public_apis
    /tools/linter-rules/type_annotate_public_apis.html
  • type_init_formals
    /tools/linter-rules/type_init_formals.html
  • type_literal_in_constant_pattern
    /tools/linter-rules/type_literal_in_constant_pattern.html
  • unawaited_futures
    /tools/linter-rules/unawaited_futures.html
  • unnecessary_await_in_return
    /tools/linter-rules/unnecessary_await_in_return.html
  • unnecessary_brace_in_string_interps
    /tools/linter-rules/unnecessary_brace_in_string_interps.html
  • unnecessary_breaks
    /tools/linter-rules/unnecessary_breaks.html
  • unnecessary_const
    /tools/linter-rules/unnecessary_const.html
  • unnecessary_constructor_name
    /tools/linter-rules/unnecessary_constructor_name.html
  • unnecessary_final
    /tools/linter-rules/unnecessary_final.html
  • unnecessary_getters_setters
    /tools/linter-rules/unnecessary_getters_setters.html
  • unnecessary_lambdas
    /tools/linter-rules/unnecessary_lambdas.html
  • unnecessary_late
    /tools/linter-rules/unnecessary_late.html
  • unnecessary_library_directive
    /tools/linter-rules/unnecessary_library_directive.html
  • unnecessary_new
    /tools/linter-rules/unnecessary_new.html
  • unnecessary_null_aware_assignments
    /tools/linter-rules/unnecessary_null_aware_assignments.html
  • unnecessary_null_aware_operator_on_extension_on_nullable
    /tools/linter-rules/unnecessary_null_aware_operator_on_extension_on_nullable.html
  • unnecessary_null_checks
    /tools/linter-rules/unnecessary_null_checks.html
  • unnecessary_null_in_if_null_operators
    /tools/linter-rules/unnecessary_null_in_if_null_operators.html
  • unnecessary_nullable_for_final_variable_declarations
    /tools/linter-rules/unnecessary_nullable_for_final_variable_declarations.html
  • unnecessary_overrides
    /tools/linter-rules/unnecessary_overrides.html
  • unnecessary_parenthesis
    /tools/linter-rules/unnecessary_parenthesis.html
  • unnecessary_raw_strings
    /tools/linter-rules/unnecessary_raw_strings.html
  • unnecessary_string_escapes
    /tools/linter-rules/unnecessary_string_escapes.html
  • unnecessary_string_interpolations
    /tools/linter-rules/unnecessary_string_interpolations.html
  • unnecessary_this
    /tools/linter-rules/unnecessary_this.html
  • unnecessary_to_list_in_spreads
    /tools/linter-rules/unnecessary_to_list_in_spreads.html
  • unreachable_from_main
    /tools/linter-rules/unreachable_from_main.html
  • use_colored_box
    /tools/linter-rules/use_colored_box.html
  • use_decorated_box
    /tools/linter-rules/use_decorated_box.html
  • use_enums
    /tools/linter-rules/use_enums.html
  • use_full_hex_values_for_flutter_colors
    /tools/linter-rules/use_full_hex_values_for_flutter_colors.html
  • use_function_type_syntax_for_parameters
    /tools/linter-rules/use_function_type_syntax_for_parameters.html
  • use_if_null_to_convert_nulls_to_bools
    /tools/linter-rules/use_if_null_to_convert_nulls_to_bools.html
  • use_is_even_rather_than_modulo
    /tools/linter-rules/use_is_even_rather_than_modulo.html
  • use_late_for_private_fields_and_variables
    /tools/linter-rules/use_late_for_private_fields_and_variables.html
  • use_named_constants
    /tools/linter-rules/use_named_constants.html
  • use_raw_strings
    /tools/linter-rules/use_raw_strings.html
  • use_rethrow_when_possible
    /tools/linter-rules/use_rethrow_when_possible.html
  • use_setters_to_change_properties
    /tools/linter-rules/use_setters_to_change_properties.html
  • use_string_buffers
    /tools/linter-rules/use_string_buffers.html
  • use_string_in_part_of_directives
    /tools/linter-rules/use_string_in_part_of_directives.html
  • use_super_parameters
    /tools/linter-rules/use_super_parameters.html
  • use_test_throws_matchers
    /tools/linter-rules/use_test_throws_matchers.html
  • use_to_and_as_if_applicable
    /tools/linter-rules/use_to_and_as_if_applicable.html
  • void_checks
    /tools/linter-rules/void_checks.html

  • /assets/css/main.css.map
  • Zones
    /articles/archive/zones
  • Converters and codecs
    /articles/archive/converters-and-codecs
  • Archived articles
    /articles/archive/index
  • Numeric computation
    /articles/archive/numeric-computation
  • Articles
    /articles/index
  • 在 Dart 裡使用 Stream
    /articles/libraries/creating-streams
  • Dart 語言課程文件
    /tutorials/index
  • Dart 程式語言課程概覽
    /tutorials/language/index
  • 非同步程式設計:使用 stream
    /tutorials/language/streams
  • Dart 程式語言課程:使用庫
    /tutorials/libraries/index
  • 使用共享的 package
    /tutorials/libraries/shared-pkgs
  • 編寫命令列應用
    /tutorials/server/cmdline
  • Fetch data from the internet
    /tutorials/server/fetch-data
  • 起步課程:編寫命令列和伺服器端應用
    /tutorials/server/get-started
  • 編寫 HTTP 伺服器
    /tutorials/server/httpserver
  • 課程目錄:使用 Dart 編寫命令列和伺服器端應用
    /tutorials/server/index
  • 起步:使用 Dart 開發 Web 應用
    /tutorials/web/get-started
  • Dart 程式語言課程:開發 Web 應用
    /tutorials/web/index
  • 向 DOM 新增元素
    /tutorials/web/low-level-html/add-elements
  • Dart 與 HTML 關聯
    /tutorials/web/low-level-html/connect-dart-html
  • Dart 程式語言課程:底層 Web 程式設計
    /tutorials/web/low-level-html/index
  • 移除 DOM 元素
    /tutorials/web/low-level-html/remove-elements
  • Configuring apps with compilation environment declarations
    /guides/environment-declarations
  • Using Google APIs
    /guides/google-apis
  • Dart 語言開發文件
    /guides/index
  • 在 Dart 裡使用 JSON
    /guides/json
  • Dart 語言速查表
    /guides/language/cheatsheet
  • Learning Dart as a JavaScript developer
    /guides/language/coming-from/js-to-dart
  • Learning Dart as a Swift developer
    /guides/language/coming-from/swift-to-dart
  • Dart language evolution
    /guides/language/evolution
  • 程式碼格式化
    /guides/language/formatting
  • Dart 開發語言概述
    /guides/language
  • Dart 開發語言概覽
    /guides/language/language-tour
  • Numbers in Dart
    /guides/language/numbers
  • 修復常見的型別問題
    /guides/language/sound-problems
  • Dart 程式設計語言規範
    /guides/language/spec
  • 使用 dart:ffi 與 C 進行互動
    /guides/libraries/c-interop
  • 建立 package
    /guides/libraries/create-packages
  • Future 和錯誤處理
    /guides/libraries/futures-error-handling
  • Dart 語言核心函式庫
    /guides/libraries/index
  • Java interop using package:jnigen
    /guides/libraries/java-interop
  • Dart 語言核心函式庫一覽
    /guides/libraries/library-tour
  • Objective-C and Swift interop using package:ffigen
    /guides/libraries/objective-c-interop
  • 釋出 package 的時候避擴音交的內容
    /guides/libraries/private-files
  • 常用 package 介紹
    /guides/libraries/useful-libraries
  • 編寫 package 的介紹頁面
    /guides/libraries/writing-package-pages
  • 如何使用 package
    /guides/packages
  • Dart 裡的測試
    /guides/testing
  • What’s new
    /guides/whats-new
Dart
參考中文內容需註明本站及連結作為出處,英文內容和範例程式碼均遵從源站授權協議。
  • 使用條款
  • 隱私政策
  • Dart 程式碼安全說明
  • 關於中文文件
  • 免責條款
  • Dart 簡體中文文檔