Spec-Zone.ru › Dart 2

dart:mirrors

getSymbol static method

Symbol getSymbol(
  1. String name,
  2. [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 BSD 3-Clause "New" or "Revised" License.
https://api.dart.dev/stable/2.19.6/dart-mirrors/MirrorSystem/getSymbol.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API