ScreenLayoutBreakpoints constructor

const ScreenLayoutBreakpoints({
  1. String? name,
  2. required double portraitStandardBreakpoint,
  3. required double portraitConstrainedWidth,
  4. required double landscapeStandardBreakpoint,
  5. required double landscapeConstrainedWidth,
  6. required double maxScale,
})

This function creates a breakpoint with the specified name. You can specify the portrait breakpoint (portraitStandardBreakpoint) and its width constraint (portraitConstrainedWidth), as well as the landscape breakpoint (landscapeStandardBreakpoint) and its width constraint (landscapeConstrainedWidth). The maxScale is a value that limits the scale to ensure it does not exceed the RenderSize of the child element.

Implementation

const ScreenLayoutBreakpoints({
  this.name,
  required this.portraitStandardBreakpoint,
  required this.portraitConstrainedWidth,
  required this.landscapeStandardBreakpoint,
  required this.landscapeConstrainedWidth,
  required this.maxScale,
});