onInit abstract method

void onInit(
  1. RouteSettings settings
)

this method will be called once before render the widget and can be used to get the arguments or settings of the current route

Implementation

void onInit(RouteSettings settings);