round method

double round(
  1. double x
)

Rounds x to the nearest integer value, rounding halfway cases away from zero.

Implementation

double round(double x) => x.roundToDouble();