operator % method Null safety

BoxConstraints operator %(
  1. double value
)

Computes the remainder of each constraint parameter by the given value.

Implementation

BoxConstraints operator%(double value) {
  return BoxConstraints(
    minWidth: minWidth % value,
    maxWidth: maxWidth % value,
    minHeight: minHeight % value,
    maxHeight: maxHeight % value,
  );
}