NumExtension extension

Extension Methods & Widgets for the numbers

on

Properties

heightBox Widget
Converts the number into a SizedBox with the height as that number.
read-only
isEven bool
Returns if the number is even
read-only
isNegative bool
Returns if the number is negative
read-only
isNotNull bool
Check if the number is not null
read-only
isNull bool
Check if the number is null
read-only
isOdd bool
Returns if the number is odd
read-only
isPositive bool
Returns if the number is positive
read-only
numberOfDigits int
Returns number of digits in this number
read-only
numCurrency String
Format numeric currency
read-only
squareBox Widget
Converts the number into a SizedBox with the width & height as that number.
read-only
text VxTextBuilder
Get Text Widget for the String
read-only
widthBox Widget
Widgets [...]
read-only

Methods

numCurrencyWithLocale({String locale = "en_US"}) String
Format numeric currency with provided locale
toDollarAsFixed({int digit = 2}) String
This ext will be removed soon. Use toDoubleStringAsFixed instead.
@Deprecated('Use [toDoubleStringAsFixed] instead. It will be removed soon.')
toDoubleStringAsFixed({int digit = 2}) String
Use this extension method to get fixed values after decimal with defined length.
toDoubleStringAsPrecised({int length = 4}) String
Use this extension method to get precised values after decimal with defined length.