build method
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),
);
}