Rounds value to given number of decimals
value
decimals
double round(final double value, {final int decimals = 6}) => (value * math.pow(10, decimals)).round() / math.pow(10, decimals);