render abstract method

Future<RenderResult> render(
  1. Component root, {
  2. required String path,
  3. Map<String, String>? query,
  4. Map<String, String>? headers,
})

Render a component to HTML.

The path is used to initialize the router for correct page rendering. Optional context provides request-scoped data (headers, cookies, etc.).

Implementation

Future<RenderResult> render(
  Component root, {
  required String path,
  Map<String, String>? query,
  Map<String, String>? headers,
});