ResponsiveWrapperData constructor
const
ResponsiveWrapperData({
- double screenWidth = 0,
- double screenHeight = 0,
- double scaledWidth = 0,
- double scaledHeight = 0,
- List<
ResponsiveBreakpoint> breakpoints = const [], - List<
ResponsiveBreakpointSegment> breakpointSegments = const [], - ResponsiveBreakpoint activeBreakpoint = const ResponsiveBreakpoint.tag(0, name: ''),
- bool isMobile = false,
- bool isPhone = false,
- bool isTablet = false,
- bool isDesktop = false,
- 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,
});