operator % method Null safety

Size operator %(
  1. double operand
)

Modulo (remainder) operator.

Returns a Size whose dimensions are the remainder of dividing the left-hand-side operand (a Size) by the scalar right-hand-side operand (a double).

Implementation

Size operator %(double operand) => Size(width % operand, height % operand);