view property

  1. @override
  2. @nonVirtual
Widget get view
override

This turns view into an implicit method that build according to the given builds methods: MOBILE, TABLET, DESKTOP and WATCH. The Default Viewport is MOBILE. When TABLET or DESKTOP builds are null, MOBILE viewport will be called.

Implementation

@override
@nonVirtual
Widget get view {
  return ScreenTypeLayout.builder(
    mobile: (_) => mobileView,
    tablet: (_) => tabletView,
    desktop: (_) => desktopView,
    watch: (_) => watchView,
  );
}