getCurrentWidget method

Widget? getCurrentWidget()

Implementation

Widget? getCurrentWidget() {
  final RoutePage<dynamic>? page = pages.lastOrNull();
  if (dialogState.isDialogShowing(page)) {
    return dialogState.getWidget(page);
  }

  return page?.pageConfiguration.child;
}