VxNumExtension extension
Extension Methods & Widgets for the numbers
- on
Properties
- acos → double
-
no setter
- asin → double
-
no setter
- cos → double
-
no setter
- exp → double
-
no setter
- 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
- length → int
-
num long
no setter
- log → double
-
no setter
- numberOfDigits → int
-
Returns number of digits in this number
no setter
- numCurrency → String
-
Format numeric currency
no setter
- sqrt → double
-
no setter
- squareBox → Widget
-
Converts the number into a SizedBox with the width & height as that number.
no setter
- tan → double
-
no setter
- text → VxTextBuilder
-
Get Text Widget for the String
no setter
- widthBox → Widget
-
Widgets
no setter
Methods
-
atan2(
num value) → double -
contains(
Pattern other, [int startIndex = 0]) → bool -
Does it contain
other
-
generate<
T> (T generator(int index), {bool growable = true}) → List< T> - Create a List of the specified length
-
max<
T extends num> (T value) → T -
min<
T extends num> (T value) → T -
numCurrencyWithLocale(
{String locale = "en_US"}) → String - Format numeric currency with provided locale
-
padLeft(
int width, [String padding = ' ']) → String -
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.