NumExtension extension
- on
Properties
- days → Duration
-
Available on num, provided by the NumExtension extension
no setter - heightBox → Widget
-
Available on num, provided by the NumExtension extension
Convert to SizedBox (useful for spacing)no setter - hours → Duration
-
Available on num, provided by the NumExtension extension
no setter - milliseconds → Duration
-
Available on num, provided by the NumExtension extension
Convert to Durationno setter - minutes → Duration
-
Available on num, provided by the NumExtension extension
no setter - seconds → Duration
-
Available on num, provided by the NumExtension extension
no setter - toDegrees → double
-
Available on num, provided by the NumExtension extension
no setter - toRadians → double
-
Available on num, provided by the NumExtension extension
Convert to radians/degreesno setter - widthBox → Widget
-
Available on num, provided by the NumExtension extension
no setter
Methods
-
clamp(
num min, num max) → num -
Available on num, provided by the NumExtension extension
Ensure number is within a range -
isBetween(
num start, num end) → bool -
Available on num, provided by the NumExtension extension
Check if number is between a range -
toCompact(
{String locale = 'en_US'}) → String -
Available on num, provided by the NumExtension extension
Convert number to compact format (e.g., 1K, 1M) -
toCurrency(
{String symbol = '\$', String locale = 'en_US'}) → String -
Available on num, provided by the NumExtension extension
Convert number to currency format -
toDecimal(
{int decimals = 2, String locale = 'en_US'}) → String -
Available on num, provided by the NumExtension extension
Format number with specific decimal places -
toPercentage(
{int decimals = 0, String locale = 'en_US'}) → String -
Available on num, provided by the NumExtension extension
Convert number to percentage