NumExt extension

Num Extensions

on

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 either null or empty.
no setter
sharpRadius SharpRadius
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 between a and b whereas the bounds are inclusive.
isInRange(num min, num max) bool
Check if the number is in the range min to max. Returns true 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 default true for international value => 1k,2k,1m,2m international 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.