【问题标题】:Is there a special meaning to class names that start with a dollar sign ($)?以美元符号 ($) 开头的类名有什么特殊含义吗? 【发布时间】:2018-10-09 20:47:30 【问题描述】: 就像这个例子:https://github.com/brianegan/github_search_angular_flutter/blob/master/github_search_common/lib/src/ui/search_state.dart 在代码的其他部分引用该类时没有美元符号。我找不到任何关于此的文档。 【问题讨论】: 标签: dart 【解决方案1】: $ 是 Dart 中任何名称的有效字符。在这种情况下,它看起来像 https://pub.dartlang.org/packages/meta_types 的约定 我会看看那个文档。 【讨论】: