ResponsiveWrapperData constructor

const ResponsiveWrapperData({
  1. double screenWidth = 0,
  2. double screenHeight = 0,
  3. double scaledWidth = 0,
  4. double scaledHeight = 0,
  5. List<ResponsiveBreakpoint> breakpoints = const [],
  6. List<ResponsiveBreakpointSegment> breakpointSegments = const [],
  7. ResponsiveBreakpoint activeBreakpoint = const ResponsiveBreakpoint.tag(0, name: ''),
  8. bool isMobile = false,
  9. bool isPhone = false,
  10. bool isTablet = false,
  11. bool isDesktop = false,
  12. Orientation orientation = Orientation.portrait,
})

Creates responsive data with explicit values.

Consider using ResponsiveWrapperData.fromResponsiveWrapper to create data based on the ResponsiveWrapper state.

Implementation

const ResponsiveWrapperData({
  this.screenWidth = 0,
  this.screenHeight = 0,
  this.scaledWidth = 0,
  this.scaledHeight = 0,
  this.breakpoints = const [],
  this.breakpointSegments = const [],
  this.activeBreakpoint = const ResponsiveBreakpoint.tag(0, name: ''),
  this.isMobile = false,
  this.isPhone = false,
  this.isTablet = false,
  this.isDesktop = false,
  this.orientation = Orientation.portrait,
});