ResponsiveValue<T> constructor
ResponsiveValue<T> ({
- T? xlarge,
- T? large,
- T? medium,
- T? small,
- T? xsmall,
- T? fallback,
- 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));
}
}