round static method
Rounds the value
up or down to the nearest integer and returns the value.
Parameter keepDouble
enforces the return type to be double
.
Implementation
@pragma("vm:prefer-inline")
static num round(double value, [bool keepDouble = true]) {
return keepDouble ? value.roundToDouble() : value.round();
}