XBreakpointsData constructor

const XBreakpointsData({
  1. XBreakpoint? mobile,
  2. XBreakpoint? tablet,
  3. XBreakpoint? desktop,
  4. XBreakpoint? infinity,
})

Implementation

const XBreakpointsData({
  final XBreakpoint? mobile,
  final XBreakpoint? tablet,
  final XBreakpoint? desktop,
  final XBreakpoint? infinity,
})  : _mobile = mobile ??
          const XBreakpoint(
            minWidth: XStandardSizes.zero,
            maxWidth: XAuxiliarySizes.x599,
          ),
      _tablet = tablet ??
          const XBreakpoint(
            minWidth: XAuxiliarySizes.x600,
            maxWidth: XAuxiliarySizes.x1023,
          ),
      _desktop = desktop ??
          const XBreakpoint(
            minWidth: XStandardSizes.x1024,
            maxWidth: XAuxiliarySizes.x1439,
          ),
      _infinity = infinity ??
          const XBreakpoint(
            minWidth: XAuxiliarySizes.x1440,
            maxWidth: double.infinity,
          );