maxSize property

set maxSize (List<double> v)

Implementation

set maxSize(List<double> v) {
  if (!(_latest is ConstrainedBox))
    return _applyConstraints(
      maxWidth: v[0],
      maxHeight: v[1],
    );

  _add(
    (w) => ConstrainedBox(
      constraints: BoxConstraints(maxWidth: v[0], maxHeight: v[1]),
      child: w,
    ),
  );
}