apply property

set apply (NikuBoxConstraints? v)

Implementation

set apply(NikuBoxConstraints? v) {
  if (v == null) return;

  minWidth = v.minWidth != 0 ? v.minWidth : minWidth;
  maxWidth = v.maxWidth != double.infinity ? v.maxWidth : maxWidth;
  minHeight = v.minHeight != 0 ? v.minHeight : minHeight;
  maxHeight = v.maxHeight != double.infinity ? v.maxHeight : maxHeight;
}