getSymbol method

Symbol getSymbol (String name, [ LibraryMirror library ])

Returns a symbol for name.

If library is not a LibraryMirror or if name is a private identifier and library is null, throws an ArgumentError. If name is a private identifier, the symbol returned is with respect to library.

The following text is non-normative:

Using this method may result in larger output. If possible, use the const constructor of Symbol or symbol literals.


external static Symbol getSymbol(String name, [LibraryMirror library]);