buildPage method

Page buildPage(
  1. BuildContext context,
  2. T value
)

Implementation

Page buildPage(BuildContext context, T value) {
  final screen = screenBuilder(context, value);

  if (pageBuilder != null) {
    return pageBuilder!.call(context, screen);
  }

  return MaterialPage(child: screen);
}