roundWithMode method

double roundWithMode({
  1. int precision = 2,
  2. ByteRoundingMode mode = ByteRoundingMode.round,
})

Rounds this value using the specified RoundingMode.

Implementation

double roundWithMode({
  int precision = 2,
  ByteRoundingMode mode = ByteRoundingMode.round,
}) {
  return ByteRounding.withMode(this, precision: precision, mode: mode);
}