NumExtension extension

Extends the functionality of the num class by adding various methods for formatting and working with numbers.

on

Properties

days Duration

Available on num, provided by the NumExtension extension

Returns a Duration object representing the number of days.
no setter
hours Duration

Available on num, provided by the NumExtension extension

Returns a Duration object representing the number of hours.
no setter
microseconds Duration

Available on num, provided by the NumExtension extension

Returns a Duration object representing the number of microseconds.
no setter
milliseconds Duration

Available on num, provided by the NumExtension extension

Returns a Duration object representing the number of milliseconds.
no setter
minutes Duration

Available on num, provided by the NumExtension extension

Returns a Duration object representing the number of minutes.
no setter
seconds Duration

Available on num, provided by the NumExtension extension

Returns a Duration object representing the number of seconds.
no setter

Methods

delay([FutureOr<void> callback()?]) Future<void>

Available on num, provided by the NumExtension extension

Delays the execution of a callback or code block by the specified number of seconds.
suffix([String suffix = '']) String

Available on num, provided by the NumExtension extension

Adds a suffix to the number.