NumExt extension

Num Extensions

on

Properties

bottomLeftSharpBorderRadius SharpBorderRadius

Available on num?, provided by the NumExt extension

no setter
bottomRightSharpRadius SharpBorderRadius

Available on num?, provided by the NumExt extension

no setter
circularSharpBorderRadius SharpBorderRadius

Available on num?, provided by the NumExt extension

no setter
sharpRadius SharpRadius

Available on num?, provided by the NumExt extension

no setter
topLeftSharpBorderRadius SharpBorderRadius

Available on num?, provided by the NumExt extension

no setter
topRightSharpBorderRadius SharpBorderRadius

Available on num?, provided by the NumExt extension

no setter

Methods

addZeroPrefix() String?

Available on num?, provided by the NumExt extension

Validate given int is not null and returns given value if null.
circularRadius() BorderRadius

Available on num?, provided by the NumExt extension

Returns a BorderRadius with circular radius.
formatWithMax({required num max, String? prefix, String? suffix, int decimalPlaces = 0, String customFormat(num value)?}) String

Available on num?, provided by the NumExt extension

Formats the number by adding a prefix or suffix based on its value compared to a threshold, with optional formatting for decimals.
generateLoremIpsumWords() String

Available on num?, provided by the NumExt extension

Get the lorem ipsum text of this words.
height() Widget

Available on num?, provided by the NumExt extension

Leaves given height of space
isBetween(num first, num second) bool

Available on num?, provided by the NumExt extension

Checks if the current value falls between the specified range.
isInRange(num min, num max) bool

Available on num?, provided by the NumExt extension

Check if the number is in the range min to max. Returns true if the number is in the range, false otherwise.
isNull() bool

Available on num?, provided by the NumExt extension

Checks if the given String s is null or empty
maxSpace() Widget

Available on num?, provided by the NumExt extension

A widget that takes, at most, an amount of space in a Row, Column,or Flex widget. The maxSpace property converts the integer value to a MaxSpace widget, which is useful for creating flexible layouts where certain elements need to occupy a specific amount of space.
randomList({int min = 0, int max = 100}) List<num>

Available on num?, provided by the NumExt extension

Get list of random numbers.
space() Widget

Available on num?, provided by the NumExt extension

This extension provides a method to convert a nullable int value to a Widget that takes a fixed amount of space in the direction of its parent.
spaceExpand() Widget

Available on num?, provided by the NumExt extension

This extension provides a way to handle nullable integers and use them to create a space widget. It validates the nullable integer, converting it to a non-nullable double, and uses it to create a space widget that expands in the cross axis direction.
squareSize() Size

Available on num?, provided by the NumExt extension

Returns Size
squareSizeBox() SizedBox

Available on num?, provided by the NumExt extension

Returns a square Size object with the current value as both width and height.
toNumeral({bool international = true, int digitAfterDecimal = 0}) String

Available on num?, provided by the NumExt extension

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

Available on num?, provided by the NumExt extension

Validate given double is not null and returns given value if null.
width() Widget

Available on num?, provided by the NumExt extension

Leaves given width of space