ResponsiveValue<T> constructor

ResponsiveValue<T>({
  1. T? xlarge,
  2. T? large,
  3. T? medium,
  4. T? small,
  5. T? xsmall,
  6. T? fallback,
  7. bool allowNull = false,
})

Implementation

ResponsiveValue({
  this.xlarge,
  this.large,
  this.medium,
  this.small,
  this.xsmall,
  this.fallback,
  bool allowNull = false,
}) {
  if (!allowNull) {
    assert((xsmall != null || fallback != null) &&
        (small != null || fallback != null) &&
        (medium != null || fallback != null) &&
        (large != null || fallback != null) &&
        (xlarge != null || fallback != null));
  }
}