rotateRight method

Logic rotateRight(
  1. dynamic rotateAmount, {
  2. int? maxAmount,
})

Returns a Logic rotated right by rotateAmount.

If rotateAmount is an int, a fixed swizzle is generated.

If rotateAmount is another Logic, a RotateRight 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 rotateRight(dynamic rotateAmount, {int? maxAmount}) =>
    _rotate(rotateAmount,
        maxAmount: maxAmount, direction: RotateDirection.right);