ScreenTypeLayout constructor

  1. @Deprecated('Use ScreenTypeLayout.builder instead for performance improvements')
ScreenTypeLayout({
  1. Key? key,
  2. ScreenBreakpoints? breakpoints,
  3. Widget? watch,
  4. required Widget mobile,
  5. Widget? tablet,
  6. Widget? desktop,
})

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();
}