AdaptiveBreakpoints.withLandscape constructor

AdaptiveBreakpoints.withLandscape({
  1. double phone = 600,
  2. double tablet = 1024,
  3. double desktop = 1440,
  4. required double landscapePhone,
  5. required double landscapeTablet,
  6. required double landscapeDesktop,
})

Creates breakpoints with separate landscape configuration.

Implementation

factory AdaptiveBreakpoints.withLandscape({
  double phone = 600,
  double tablet = 1024,
  double desktop = 1440,
  required double landscapePhone,
  required double landscapeTablet,
  required double landscapeDesktop,
}) {
  return AdaptiveBreakpoints(
    phone: phone,
    tablet: tablet,
    desktop: desktop,
    landscape: AdaptiveBreakpoints(
      phone: landscapePhone,
      tablet: landscapeTablet,
      desktop: landscapeDesktop,
    ),
  );
}