roundWithNumber method

double roundWithNumber(
  1. double base
)

Implementation

double roundWithNumber(double base) {
  return (this * base).round() / base;
}