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]);
© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dart.dev/stable/2.5.0/dart-mirrors/MirrorSystem/getSymbol.html