BreakpointBuilder constructor

const BreakpointBuilder({
  1. Key? key,
  2. Widget builder(
    1. BuildContext context,
    2. DeviceType deviceType
    )?,
  3. Widget mobile(
    1. BuildContext context
    )?,
  4. Widget tablet(
    1. BuildContext context
    )?,
  5. Widget desktop(
    1. BuildContext context
    )?,
})

Implementation

const BreakpointBuilder({
  super.key,
  this.builder,
  this.mobile,
  this.tablet,
  this.desktop,
}) : assert(
        builder != null || mobile != null,
        'Either builder or mobile must be provided',
      );