ResponsiveNum extension

Extensions for Num containing min, max, and per

on

Methods

max(double max) double
Clamps your value with only a maximum value
min(double min) double
Clamps your value with only a minimum value
per(double percentage) double
Return the percentage of the given value
when(Condition condition, double value) double
Return the given value if the condition is true