NomoRouteBody constructor

const NomoRouteBody({
  1. Widget? child,
  2. Key? key,
  3. ScrollController? scrollController,
  4. EdgeInsetsGeometry? padding,
  5. double? scrollBarThickness,
  6. Radius? scrollBarRadius,
  7. List<Widget>? children,
  8. List<Widget>? slivers,
  9. Widget builder(
    1. BuildContext context
    )?,
  10. List<Widget> childrenBuilder(
    1. BuildContext context
    )?,
  11. List<Widget> sliverBuilder(
    1. BuildContext context
    )?,
  12. bool useScrollBar = false,
  13. Widget? footer,
  14. Color? backgroundColor,
  15. bool scrollable = false,
  16. double? maxContentWidth,
  17. Widget? background,
  18. Widget? floatingFooter,
})

Implementation

const NomoRouteBody({
  this.child,
  super.key,
  this.scrollController,
  this.padding,
  this.scrollBarThickness,
  this.scrollBarRadius,
  this.children,
  this.slivers,
  this.builder,
  this.childrenBuilder,
  this.sliverBuilder,
  this.useScrollBar = false,
  this.footer,
  this.backgroundColor,
  this.scrollable = false,
  this.maxContentWidth,
  this.background,
  this.floatingFooter,
}) : assert(
        child != null ||
            slivers != null ||
            children != null ||
            builder != null ||
            sliverBuilder != null ||
            childrenBuilder != null,
        'Either child or builder must be provided',
      );