ResponsiveVisibility.tabletOnly constructor

const ResponsiveVisibility.tabletOnly({
  1. Key? key,
  2. required Widget child,
  3. Widget replacement = const SizedBox.shrink(),
})

Show only on tablet devices.

Implementation

const ResponsiveVisibility.tabletOnly({
  super.key,
  required this.child,
  this.replacement = const SizedBox.shrink(),
})  : visibleOn = const {DeviceType.tablet},
      hiddenOn = null;