operator ~/ method

BoxConstraints operator ~/ (double factor)

Scales each constraint parameter by the inverse of the given factor, rounded to the nearest integer.

Implementation

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