Area constructor
Area({
- double? size,
- double? flex,
- double? min,
- double? max,
- dynamic id,
- dynamic data,
- AreaWidgetBuilder? builder,
Implementation
Area(
{double? size,
double? flex,
double? min,
double? max,
dynamic id,
this.data,
this.builder})
: this.id = id != null ? id : AreaId._() {
if (size != null && flex != null) {
throw ArgumentError('Cannot provide both a size and a flex.');
}
if (size == null && flex == null) {
flex = 1;
}
_setMinWithoutNotify(min);
_setMaxWithoutNotify(max);
_setFlexWithoutNotify(value: flex, useMin: true, useMax: true);
_setSizeWithoutNotify(value: size, useMin: true, useMax: true);
}