percent property

double percent

Implementation

double get percent => (((value.clamp(min, max)) - min) / ((max - min)));