IntExtensions extension
- on
Properties
- isEmpty → bool
-
Available on int, provided by the IntExtensions extension
Returnstrueif int is0.no setter - isNotEmpty → bool
-
Available on int, provided by the IntExtensions extension
Returnstrueif int is not0.no setter
Methods
-
format(
String format) → String -
Available on int, provided by the IntExtensions extension
Enterformatto replace the value of int with a string. -
limit(
int min, int max) → int -
Available on int, provided by the IntExtensions extension
If int is less than or equal tomin,minis returned. -
limitHigh(
int max) → int -
Available on int, provided by the IntExtensions extension
If int is greater than or equal tomax,maxis returned. -
limitLow(
int min) → int -
Available on int, provided by the IntExtensions extension
If int is less than or equal tomin,minis returned. -
replaceNanOrInfinite(
[int replace = 0]) → int -
Available on int, provided by the IntExtensions extension
If int is double.nan, double.infinity, or double.negativeInfinity, replace it withreplace.