shift method

Decimal shift(
  1. int value
)

Shift the decimal point on the right for positive value or on the left for negative one.

var x = Decimal.parse('123.4567');
x.shift(1); // 1234.567
x.shift(-1); // 12.34567

Implementation

Decimal shift(int value) => this * ten.pow(value).toDecimal();