roundToTenth property

double get roundToTenth

Rounds the number to the nearest multiple of 10.

Implementation

double get roundToTenth => (this / 10).ceil() * 10;