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

Adds a zero prefix to the given integer if it is less than 10.
decreaseByPercentage(double percentage) num?

Available on num?, provided by the NumExt extension

Decreases the number by the given percentage.
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

Generates lorem ipsum text with the given number of words.
height() Widget

Available on num?, provided by the NumExt extension

Leaves given height of space
increaseByPercentage(double percentage) num?

Available on num?, provided by the NumExt extension

Increases the number by the given percentage.
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.
percentageDifference(double other) num?

Available on num?, provided by the NumExt extension

Calculates the absolute percentage difference between the current number and another number.
randomList({int min = 0, int max = 100}) List<num>

Available on num?, provided by the NumExt extension

Generates a list of random numbers with a given length.
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

Converts the number to a numeral format (e.g., 1K, 1M, etc.).
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