operator / method Null safety

BoxConstraints operator /(
  1. double factor
)

Scales each constraint parameter by the inverse of the given factor.

Implementation

BoxConstraints operator/(double factor) {
  return BoxConstraints(
    minWidth: minWidth / factor,
    maxWidth: maxWidth / factor,
    minHeight: minHeight / factor,
    maxHeight: maxHeight / factor,
  );
}