ScreenInfo constructor

ScreenInfo({
  1. required double width,
  2. required double height,
  3. required Orientation orientation,
  4. required double mobilePortraitBreakpoint,
  5. required double mobileLandscapeBreakpoint,
  6. required double tabletLandscapeBreakpoint,
})

Constructs a ScreenInfo instance with the given parameters.

width provides the screen width. height provides the screen height. orientation provides the screen orientation.

Implementation

ScreenInfo({
  required this.width,
  required this.height,
  required this.orientation,
  required this.mobilePortraitBreakpoint,
  required this.mobileLandscapeBreakpoint,
  required this.tabletLandscapeBreakpoint,
});