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.2 已经发布!
当前版本改进了类型提升、与其他语言的交互调用以及 DevTools 等……

  • 概览
  • 社区
  • 尝试 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 中的数字
    • Google APIs
    • 跨平台应用
    • 命令行和服务端应用
      • 概览
      • 起步教程
      • 命令行应用
      • 从网络上获取数据
      • 编写 HTTP 服务端应用
      • 库和 package
      • Google Cloud
    • 网页端 (Web) 应用
      • 概览
      • 开始使用
      • 底层 Web 编程
        • Dart 与 HTML 关联
        • 向 DOM 添加元素
        • 移除 DOM 元素
      • 部署
      • 常用 Web 库和 package
    • 环境变量声明
  • 与其他语言进行交互调用
    • 与 C 互调
    • 与 Objective-C 和 Swift 互调
    • 与 Java 和 Kotlin 互调
    • 与 JavaScript 互调
  • 开发工具和使用技巧
    • 概览
    • 编辑器和调试工具
      • 使用 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

Document index

  • 向 DOM 添加元素
    /tutorials/web/low-level-html/add-elements.html
  • 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
  • Breaking changes and deprecations
    /resources/breaking-changes.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
  • 使用 dart:ffi 与 C 进行交互
    /interop/c-interop.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
  • 编写命令行应用
    /tutorials/server/cmdline.html
  • 行为准则
    /community/code-of-conduct.html
  • Collections
    /language/collections.html
  • Comments
    /language/comments.html
  • Dart 中的并发
    /language/concurrency.html
  • Dart 与 HTML 关联
    /tutorials/web/low-level-html/connect-dart-html.html
  • Constructors
    /language/constructors.html
  • Converters and codecs
    /articles/archive/converters-and-codecs.html
  • 创建 package
    /guides/libraries/create-packages.html
  • 在 Dart 里使用 Stream
    /articles/libraries/creating-streams.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
  • Configuring apps with compilation environment declarations
    /guides/environment-declarations.html
  • 为 pub 命令配置环境变量
    /tools/pub/environment-variables.html
  • Error handling
    /language/error-handling.html
  • Dart language evolution
    /guides/language/evolution.html
  • 实验性的参数标记
    /tools/experiment-flags.html
  • Extend a class
    /language/extend.html
  • Extension 方法
    /language/extension-methods.html
  • 空安全:常见问题
    /null-safety/faq.html
  • Dart 常见问题和解答
    /resources/faq.html
  • Fetch data from the internet
    /tutorials/server/fetch-data.html
  • Functions
    /language/functions.html
  • Future 和错误处理
    /guides/libraries/futures-error-handling.html
  • Generics
    /language/generics.html
  • 起步教程:编写命令行和服务端应用
    /tutorials/server/get-started.html
  • 起步:使用 Dart 开发 Web 应用
    /tutorials/web/get-started.html
  • Package 术语表
    /tools/pub/glossary.html
  • Glossary
    /resources/glossary.html
  • Using Google APIs
    /guides/google-apis.html
  • Using Google Cloud
    /server/google-cloud.html
  • Dart 博客测试文章
    /posts/hello_cn.html
  • 编写 HTTP 服务器
    /tutorials/server/httpserver.html
  • 可迭代集合
    /codelabs/iterables.html
  • Java interop using package:jnigen
    /interop/java-interop.html
  • 使用 IntelliJ 和 Android Studio 开发 Dart 应用
    /tools/jetbrains-plugin.html
  • Web 上与 JavaScript 互调
    /interop/js-interop.html
  • Learning Dart as a JavaScript developer
    /guides/language/coming-from/js-to-dart.html
  • 在 Dart 里使用 JSON
    /guides/json.html
  • Keywords
    /language/keywords.html
  • Dart 开发语言概览
    /guides/language/language-tour.html
  • 命令行和服务器的库和 Package
    /server/libraries.html
  • 常用 Web 库和 package
    /web/libraries.html
  • Libraries & imports
    /language/libraries.html
  • Dart 语言核心库一览
    /guides/libraries/library-tour.html
  • Loops
    /language/loops.html
  • Document index
    /map.html
  • 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
  • Numbers in Dart
    /guides/language/numbers.html
  • Numeric computation
    /articles/archive/numeric-computation.html
  • Objective-C and Swift interop using package:ffigen
    /interop/objective-c-interop.html
  • 已失效的 pub 命令和功能
    /tools/pub/obsolete.html
  • Operators
    /language/operators.html
  • Dart 概览
    /overview.html
  • Package 的文件结构
    /tools/pub/package-layout.html
  • 如何使用 package
    /guides/packages.html
  • Pattern types
    /language/pattern-types.html
  • Patterns
    /language/patterns.html
  • 隐私权声明
    /tools/dartpad/privacy.html
  • 发布 package 的时候避免提交的内容
    /guides/libraries/private-files.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
  • 移除 DOM 元素
    /tutorials/web/low-level-html/remove-elements.html
  • Dart SDK overview
    /tools/sdk.html
  • 搜索 Flutter & Dart 社区相关网站
    /search-all.html
  • 搜索 Flutter & Dart 官方文档资源
    /search.html
  • 安全
    /security.html
  • 修复常见的类型问题
    /guides/language/sound-problems.html
  • Dart 编程语言规范
    /guides/language/spec.html
  • 异步编程:使用 stream
    /tutorials/language/streams.html
  • 高效 Dart 语言指南:代码风格
    /effective-dart/style.html
  • Learning Dart as a Swift developer
    /guides/language/coming-from/swift-to-dart.html
  • Terms of use
    /terms.html
  • Dart 里的测试
    /guides/testing.html
  • DartPad 问题排查
    /tools/dartpad/troubleshoot.html
  • Pub 命令问题排查
    /tools/pub/troubleshoot.html
  • Dart 语言里的类型体系
    /language/type-system.html
  • Typedefs
    /language/typedefs.html
  • 深入理解空安全
    /null-safety/understanding-null-safety.html
  • 非健全的空安全
    /null-safety/unsound-null-safety.html
  • 高效 Dart 语言指南:用法示例
    /effective-dart/usage.html
  • 常用 package 介绍
    /guides/libraries/useful-libraries.html
  • 变量
    /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
  • What's new
    /guides/whats-new.html
  • Who uses Dart
    /community/who-uses-dart.html
  • 编写 package 的介绍页面
    /guides/libraries/writing-package-pages.html
  • Zones
    /articles/archive/zones.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_unstable_final_fields
    /tools/linter-rules/avoid_unstable_final_fields.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
  • annotate_redeclares
    /tools/linter-rules/annotate_redeclares.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
Dart
引用中文内容需注明本站及链接作为出处,英文内容和示例代码均遵从源站授权协议。
  • 使用条款
  • 隐私政策
  • Dart 代码安全说明
  • 关于中文文档
  • 免责条款
  • 京ICP备13029451号-6 | 京公网安备11010802029624号