Int_ extension

Supercharged extensions on int numbers.

on

Properties

days Duration
Returns a Duration representing the current value as days. [...]
read-only
hours Duration
Returns a Duration representing the current value as hours. [...]
read-only
microseconds Duration
Returns a Duration representing the current value as microseconds. [...]
read-only
milliseconds Duration
Returns a Duration representing the current value as milliseconds. [...]
read-only
minutes Duration
Returns a Duration representing the current value as minutes. [...]
read-only
seconds Duration
Returns a Duration representing the current value as seconds. [...]
read-only

Methods

between(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. [...]
tweenTo(int end) IntTween
Returns a IntTween from this value to the given end value [...]
until(int n) Iterable<int>
Creates an Iterable<int> that contains all values from current integer until (excluding) the value n. [...]