NumExtension extension

Extension Methods & Widgets for the numbers

on

Properties

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

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.
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.