robson
robson

Reputation: 453

Is there a special meaning to class names that start with a dollar sign ($)?

Like in this example: https://github.com/brianegan/github_search_angular_flutter/blob/master/github_search_common/lib/src/ui/search_state.dart

The class is referenced to without the dollar sign in other parts of the code. I couldn't find any documentation about this.

Upvotes: 0

Views: 329

Answers (1)

Kevin Moore
Kevin Moore

Reputation: 6171

$ is a valid character for any name in Dart. In this case, it looks like the convention for https://pub.dartlang.org/packages/meta_types

I'd look at that documentation.

Upvotes: 1

Related Questions