Symbol constructor

Constructs a new Symbol.

const Symbol(
String name
)

Constructs a new Symbol.

The name must be a valid public Dart member name, public constructor name, or library name, optionally qualified.

A qualified name is a valid name preceded by a public identifier name and a '.', e.g., foo.bar.baz= is a qualified version of baz=. That means that the content of the name String must be either

The following text is non-normative:

Creating non-const Symbol instances may result in larger output. If possible, use MirrorsUsed in "dart:mirrors" to specify which names might be passed to this constructor.