build method

  1. @override
Widget build(
  1. BuildContext context
)
override

Describes the part of the user interface represented by this state.

Implementation

@override
Widget build(BuildContext context) {
  if (_history.isEmpty) {
    return widget.home ?? const _EmptyWidget();
  }

  return _NavigatorScope(
    navigator: this,
    child: currentRoute!.buildPage(context),
  );
}