exports property

List<Object?> exports
final

A list of identifiers that may be referenced in the template.

Small Example

Suppose you want to use an enum value in your template:

enum MyEnum { foo, bar, baz }

@Component(
  selector: 'example',
  exports: const [MyEnum],
  template: '<p>{{MyEnum.bar}}</p>',
)
class Example {}

Implementation

final List<Object?> exports;