ResponsiveVisibility constructor Null safety

const ResponsiveVisibility(
  1. {Key? key,
  2. required Widget child,
  3. bool visible = true,
  4. List<Condition> visibleWhen = const [],
  5. List<Condition> hiddenWhen = const [],
  6. Widget replacement = const SizedBox.shrink(),
  7. bool maintainState = false,
  8. bool maintainAnimation = false,
  9. bool maintainSize = false,
  10. bool maintainSemantics = false,
  11. bool maintainInteractivity = false}
)

Implementation

const ResponsiveVisibility({
  Key? key,
  required this.child,
  this.visible = true,
  this.visibleWhen = const [],
  this.hiddenWhen = const [],
  this.replacement = const SizedBox.shrink(),
  this.maintainState = false,
  this.maintainAnimation = false,
  this.maintainSize = false,
  this.maintainSemantics = false,
  this.maintainInteractivity = false,
}) : super(key: key);