IntExtensions extension
- on
Properties
Methods
-
format(
String format) → String -
Enter
format
to replace the value of int with a string. -
limit(
int min, int max) → int -
If int is less than or equal to
min
,min
is returned. -
limitHigh(
int max) → int -
If int is greater than or equal to
max
,max
is returned. -
limitLow(
int min) → int -
If int is less than or equal to
min
,min
is returned. -
replaceNanOrInfinite(
[int replace = 0]) → int -
If int is double.nan, double.infinity, or double.negativeInfinity, replace it with
replace
.