IntExtensions extension
- on
Properties
- absolute → dynamic
-
Available on int, provided by the IntExtensions extension
Returns the absolute valueno setter - asBool → bool
-
Available on int, provided by the IntExtensions extension
Convert this integer into boolean.no setter - convertMinutesToPattern → String
-
Available on int, provided by the IntExtensions extension
Converts an integer value representing minutes to a formatted string pattern.no setter - doubled → int
-
Available on int, provided by the IntExtensions extension
Return this number time twono setter - fourth → double
-
Available on int, provided by the IntExtensions extension
Returns fourth of the numberno setter - half → double
-
Available on int, provided by the IntExtensions extension
Returns half of the numberno setter - humanize → String
-
Available on int, provided by the IntExtensions extension
This getter provides a human-readable string representation of a number.no setter - humanNum → String
-
Available on int, provided by the IntExtensions extension
This extension provides a methodget humanNum
to get the ordinal form of an integer.no setter - isEven → bool
-
Available on int, provided by the IntExtensions extension
Returns if the number is evenno setter - isNegative → bool
-
Available on int, provided by the IntExtensions extension
Returns if the number is negativeno setter - isOdd → bool
-
Available on int, provided by the IntExtensions extension
Returns if the number is oddno setter - isPositive → bool
-
Available on int, provided by the IntExtensions extension
Returns if the number is positiveno setter - numberOfDigits → int
-
Available on int, provided by the IntExtensions extension
Returns number of digits in this numberno setter - quadrupled → int
-
Available on int, provided by the IntExtensions extension
Return this number time fourno setter - squared → int
-
Available on int, provided by the IntExtensions extension
Return squared numberno setter - tenth → double
-
Available on int, provided by the IntExtensions extension
Returns tenth of the numberno setter - third → double
-
Available on int, provided by the IntExtensions extension
Returns third of the numberno setter - tripled → int
-
Available on int, provided by the IntExtensions extension
Return this number time threeno setter
Methods
-
inRangeOf(
int min, int max) → int -
Available on int, provided by the IntExtensions extension
Clamps the current integer to be within the range ofmin
andmax
. -
to(
int maxInclusive, {int step = 1}) → List< int> -
Available on int, provided by the IntExtensions extension
Generates a list of integers from the current integer tomaxInclusive
with an optionalstep
. -
withDiscount(
double? discount) → int -
Available on int, provided by the IntExtensions extension
Applies a discount to the current integer value and returns the discounted amount.