String roundTo(double value, int decimalPoints) { final power = pow(10, decimalPoints); return ((value * power).round() / power).toString(); }