getSymbol method
- 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.
Implementation
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.13.0/dart-mirrors/MirrorSystem/getSymbol.html