init method

void init()

Function used to declare the initial state/case of a component.

This function is called at the beginning of rendering, once the application is added to the DOM.

init can be called synchronously or asynchronously.

Implementation

void init() async {}