NumExtensions extension
- on
Properties
- day → Duration
-
Available on num, provided by the NumExtensions extension
Converts this number to aDurationin days.no setter - fixed0 → String
-
Available on num, provided by the NumExtensions extension
Returns a string representation of this number with 1 decimal place.no setter - fixed00 → String
-
Available on num, provided by the NumExtensions extension
Returns a string representation of this number with 2 decimal places.no setter - half → double
-
Available on num, provided by the NumExtensions extension
Returns half of this number asdouble.no setter - horizontalSpace → SizedBox
-
Available on num, provided by the NumExtensions extension
Returns aSizedBoxwidget with the width set to this number.no setter - hr → Duration
-
Available on num, provided by the NumExtensions extension
Converts this number to aDurationin hours.no setter - isEven → bool
-
Available on num, provided by the NumExtensions extension
Returnstrueif this number is a even number.no setter - min → Duration
-
Available on num, provided by the NumExtensions extension
Converts this number to aDurationin minutes.no setter - misec → Duration
-
Available on num, provided by the NumExtensions extension
Converts this number to aDurationin microseconds.no setter - msec → Duration
-
Available on num, provided by the NumExtensions extension
Converts this number to aDurationin milliseconds.no setter - quarter → double
-
Available on num, provided by the NumExtensions extension
Returns one quarter (25%) of this number asdouble.no setter - screenHeight → double
-
Available on num, provided by the NumExtensions extension
Get the logical screen height multiplied by this number.no setter - screenWidth → double
-
Available on num, provided by the NumExtensions extension
Get the logical screen width multiplied by this number.no setter - sec → Duration
-
Available on num, provided by the NumExtensions extension
Converts this number to aDurationin seconds.no setter - sqRoot → double
-
Available on num, provided by the NumExtensions extension
Returns the square root (√) of this number.no setter - square → double
-
Available on num, provided by the NumExtensions extension
Returns the square of this number asdouble(n * n).no setter - verticalSpace → SizedBox
-
Available on num, provided by the NumExtensions extension
Returns aSizedBoxwidget with the height set to this number.no setter
Methods
-
format(
String formatStr) → String -
Available on num, provided by the NumExtensions extension
Returns a string representation of this number with the format provided as a parameter. -
isBetween(
num min, num max) → bool -
Available on num, provided by the NumExtensions extension
Returnstrueif this number is between the providedminandmaxvalues. -
isDivisibleBy(
int divisor) → bool -
Available on num, provided by the NumExtensions extension
Returnstrueif this number is divisible by the provideddivisor.