components property

List<ComponentInfo> get components

Returns the list of island components used by this page.

These components will be registered for hydration on the client. Override this getter to declare which components your page uses.

Example

@override
List<ComponentInfo> get components => [
  ComponentInfo('my-counter', Counter.new),
  ComponentInfo('user-card', UserCard.new),
];

Implementation

List<ComponentInfo> get components => [];