roundAfter function

double roundAfter (
  1. double number,
  2. int position
)

Implementation

double roundAfter(double number, int position) {
  final double shift = pow(10, position).toDouble();
  return (number * shift).roundToDouble() / shift;
}