NumExt extension
Num Extensions
- on
-
- num?
Properties
- bottomLeftSharpBorderRadius → SharpBorderRadius
-
no setter
- bottomRightSharpRadius → SharpBorderRadius
-
no setter
- circularSharpBorderRadius → SharpBorderRadius
-
no setter
- generateLoremIpsumWords → String
-
Get the lorem ipsum text of
this
words.no setter - isNullOrEmpty → bool
-
Returns
true
if this nullable iterable is eithernull
or empty.no setter -
no setter
- topLeftSharpBorderRadius → SharpBorderRadius
-
no setter
- topRightSharpBorderRadius → SharpBorderRadius
-
no setter
- validateNum → num
-
Validate given double is not null and returns given value if null.
no setter
Methods
-
between(
int min, int max) → bool -
Determines if
this
is betweena
andb
whereas the bounds are inclusive. -
isInRange(
num min, num max) → bool -
Check if the number is in the range
min
tomax
. Returnstrue
if the number is in the range,false
otherwise. -
randomList(
{int min = 0, int max = 100}) → List< num> - Get list of random numbers.
-
toNumeral(
{bool international = true, int digitAfterDecimal = 0}) → String -
Num value convert into numeral String Like 1K, 10K, 1M, 10M
international
is defaulttrue
for international value => 1k,2k,1m,2minternational
false
for indian value => 1k,2k,1 L,2 L, 1 Cr -
validate(
{num value = 0}) → num - Validate given double is not null and returns given value if null.