roundToFiftyOrHundred property

double get roundToFiftyOrHundred

Rounds the number up to the nearest multiple of 50.

Implementation

double get roundToFiftyOrHundred =>
    this + (50 - ((this % 50) > 0 ? this % 50 : 50));