AdaptiveVisibility.phoneOnly constructor

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

Creates a visibility widget that shows on phone only.

Implementation

const AdaptiveVisibility.phoneOnly({
  super.key,
  required this.child,
  this.replacement,
  this.maintainState = false,
}) : visibleOn = const [DeviceType.phone],
     hiddenOn = null;