init method

void init()

Implementation

void init() {
  state.focusedChild = calculateInitialRoute();

  /// Listens to FRouteState state changes, notifies any router listeners,
  /// which will also trigger a rebuild so downstream widgets can adjust
  /// accordingly
  state.addListener(_onStateChange);
}