rotateLeft method
- dynamic rotateAmount, {
- int? maxAmount,
Returns a Logic rotated left by rotateAmount
.
If rotateAmount
is an int, a fixed swizzle is generated.
If rotateAmount
is another Logic, a RotateLeft is created to
conditionally rotate by different amounts based on the value of
rotateAmount
. The maxAmount
is the largest value for which this
rotation should support, which could be greater than the width
of
rotateAmount
.
If no maxAmount
is provided, it will default to the width
of
this
. The maxAmount
will be not be larger than what could be
represented by the maximum value of rotateAmount
.
Implementation
Logic rotateLeft(dynamic rotateAmount, {int? maxAmount}) =>
_rotate(rotateAmount,
maxAmount: maxAmount, direction: RotateDirection.left);