ResponsiveVisibility constructor
const
ResponsiveVisibility({
- Key? key,
- required Widget child,
- Widget replacement = const SizedBox.shrink(),
- Set<
DeviceType> ? visibleOn,
Implementation
const ResponsiveVisibility({
super.key,
required this.child,
this.replacement = const SizedBox.shrink(),
this.visibleOn,
this.hiddenOn,
}) : assert(
visibleOn != null || hiddenOn != null,
'Either visibleOn or hiddenOn must be provided',
);