buildList method

List<Widget> buildList(
  1. BuildContext context
)

Create a list of Widgets for a webpage using this widget if necessary.

Implementation

List<Widget> buildList(BuildContext context) {
  List<Widget> list;
  try {
    /// Retrieve the main content if any.
    list = webPageBaseController.buildList(context) ?? [const SizedBox()];
  } catch (ex, stack) {
    list = [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 list;
}