Math.round Dart
var foo = 6.28;
print(foo.round()); // 6
var bar = 6.5;
print(bar.round()); // 7
CodePadding
var foo = 6.28;
print(foo.round()); // 6
var bar = 6.5;
print(bar.round()); // 7