OnControllerInit typedef

OnControllerInit = Future<void> Function(WebFController controller)

A callback that is invoked when a WebFController is fully initialized but before the content is executed.

Use this to perform early configuration or setup of the WebF environment before any content is loaded. This provides a chance to interact with the controller when its native components are ready but before the JavaScript execution begins.

The callback must return a Future to allow for asynchronous setup operations.

Implementation

typedef OnControllerInit = Future<void> Function(WebFController controller);