ResponsiveVisibility constructor
const
ResponsiveVisibility({
- Key? key,
- required Widget child,
- Widget replacement = const SizedBox.shrink(),
- List<
ScreenType> ? visibleOn,
Creates a ResponsiveVisibility widget.
Implementation
const ResponsiveVisibility({
super.key,
required this.child,
this.replacement = const SizedBox.shrink(),
this.visibleOn,
this.hiddenOn,
}) : assert(visibleOn == null || hiddenOn == null,
'Provide either visibleOn or hiddenOn, not both.');