ScreenTypeLayout constructor
- @Deprecated('Use ScreenTypeLayout.builder instead for performance improvements')
Implementation
@Deprecated(
'Use ScreenTypeLayout.builder instead for performance improvements',
)
ScreenTypeLayout({
Key? key,
this.breakpoints,
Widget? watch,
required Widget mobile,
Widget? tablet,
Widget? desktop,
}) : this.watch = _builderOrNull(watch),
this.mobile = _builderOrNull(mobile)!,
this.tablet = _builderOrNull(tablet),
this.desktop = _builderOrNull(desktop),
super(key: key) {
_checkIfMobileOrDesktopIsSupplied();
}