getSymbol method
Symbol getSymbol(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.
Source
external static Symbol getSymbol(String name, [LibraryMirror library]);
© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dartlang.org/stable/1.24.3/dart-mirrors/MirrorSystem/getSymbol.html