IntBasics extension

Utility extension methods for the native int class.

on

Properties

days → Duration

Available on int, provided by the IntBasics extension

Returns Duration of this in days.
no setter
hours → Duration

Available on int, provided by the IntBasics extension

Returns Duration of this in hours.
no setter
microseconds → Duration

Available on int, provided by the IntBasics extension

Returns Duration of this in microseconds.
no setter
milliseconds → Duration

Available on int, provided by the IntBasics extension

Returns Duration of this in milliseconds.
no setter
minutes → Duration

Available on int, provided by the IntBasics extension

Returns Duration of this in minutes.
no setter
range → Iterable<int>

Available on int, provided by the IntBasics extension

Returns an iterable from 0 up to but not including this.
no setter
seconds → Duration

Available on int, provided by the IntBasics extension

Returns Duration of this in seconds.
no setter

Methods

to(int end, {int by = 1}) → Iterable<int>

Available on int, provided by the IntBasics extension

Returns an iterable from this inclusive to end exclusive.