IntSC extension

Supercharged extensions on int numbers.

on

Properties

days Duration
Returns a Duration representing the current value as days.
no setter
hours Duration
Returns a Duration representing the current value as hours.
no setter
microseconds Duration
Returns a Duration representing the current value as microseconds.
no setter
milliseconds Duration
Returns a Duration representing the current value as milliseconds.
no setter
minutes Duration
Returns a Duration representing the current value as minutes.
no setter
seconds Duration
Returns a Duration representing the current value as seconds.
no setter

Methods

isBetween(num first, num second) bool
Returns a bool if this value is between (including) the two numeric values first and second.
rangeTo(int n) Iterable<int>
Creates an Iterable<int> that contains all values from current integer until (including) the value n.
times(void action()) → void
Executes the function action for this times.
until(int n) Iterable<int>
Creates an Iterable<int> that contains all values from current integer until (excluding) the value n.