ResponsiveVisibility.smallOnly constructor

const ResponsiveVisibility.smallOnly({
  1. Key? key,
  2. required Widget child,
  3. Widget? replacement,
  4. bool maintainState = false,
})

Shows the child only on small screens (xs, sm).

Implementation

const ResponsiveVisibility.smallOnly({
  super.key,
  required this.child,
  this.replacement,
  this.maintainState = false,
}) : visibleWhen = null,
     visibleOn = const [ScreenSize.xs, ScreenSize.sm],
     hiddenOn = null;