ResponsiveVisibility.conditions constructor

const ResponsiveVisibility.conditions({
  1. Key? key,
  2. required Widget child,
  3. bool? visibilityIfNotMatch,
  4. List<ConditionBreakpoint<bool>> visibleWhen = const [],
  5. List<ConditionBreakpoint<bool>> hiddenWhen = const [],
  6. ScreenBreakpoints? localBreakpoints,
})

Implementation

const ResponsiveVisibility.conditions({
  Key? key,
  required this.child,
  this.visibilityIfNotMatch,
  this.visibleWhen = const [],
  this.hiddenWhen = const [],
  this.localBreakpoints,
})  : assert(visibleWhen.length == 0 || hiddenWhen.length == 0),
      type = ConditionType.conditions,
      conditionScreen = _defaultConditionScreenVisibility,
      super(key: key);