ResponsiveLayoutWith<T> constructor

const ResponsiveLayoutWith<T>({
  1. Key? key,
  2. required Widget phone(
    1. BuildContext context,
    2. T param
    ),
  3. Widget tablet(
    1. BuildContext context,
    2. T param
    )?,
  4. Widget desktop(
    1. BuildContext context,
    2. T param
    )?,
  5. ResponsivePreBuilderWith<T>? preBuilder,
  6. ResponsiveBreakpoints breakpoints = const ResponsiveBreakpoints(),
  7. bool useShortestSide = true,
  8. T? initialParam,
  9. bool treatLandscapePhoneAsTablet = false,
  10. bool treatPortraitTabletAsPhone = false,
})

Implementation

const ResponsiveLayoutWith({
  super.key,
  required this.phone,
  this.tablet,
  this.desktop,
  this.preBuilder,
  this.breakpoints = const ResponsiveBreakpoints(),
  this.useShortestSide = true,
  this.initialParam,
  this.treatLandscapePhoneAsTablet = false,
  this.treatPortraitTabletAsPhone = false,
});