operator * method Null safety

BoxConstraints operator *(
  1. double factor
)

Scales each constraint parameter by the given factor.

Implementation

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