description

# symbol property

String? symbol
final

The native symbol to be resolved, if not using the default.

If not specified, the default symbol used for native function lookup is the annotated function's name.

Example:

    @Native<Int64 Function(Int64, Int64)>()
    external int sum(int a, int b);

Example 2:

    @Native<Int64 Function(Int64, Int64)>(symbol: 'sum')
    external int sum(int a, int b);

The above two examples are equivalent.

Prefer omitting the symbol when possible.

## Implementation

    final String? symbol;