builder method

Widget builder(
  1. BuildContext context
)

Create the webpage using this widget if necessary.

Implementation

Widget builder(BuildContext context) {
  Widget widget;
  try {
    /// Retrieve the main content if any.
    widget = webPageBaseController.builder(context) ?? const SizedBox();
  } catch (ex, stack) {
    widget = const SizedBox();
    FlutterError.reportError(FlutterErrorDetails(
      exception: ex,
      stack: stack,
      library: 'webpage_base.dart',
      context: ErrorDescription('Widget? builder(BuildContext context) {'),
    ));
    // Make the error known if under development.
    if (App.inDebugger) {
      rethrow;
    }
  }
  return widget;
}