IntExtensions extension

on

Methods

days() Duration

Available on int, provided by the IntExtensions extension

Returns days duration
hours() Duration

Available on int, provided by the IntExtensions extension

Returns hours duration
lastDigits(int n) int

Available on int, provided by the IntExtensions extension

get last charts of give value 'I like dart language'.lastChars(13) // dart language
microseconds() Duration

Available on int, provided by the IntExtensions extension

Returns microseconds duration 5.microseconds
milliseconds() Duration

Available on int, provided by the IntExtensions extension

Returns milliseconds duration
minutes() Duration

Available on int, provided by the IntExtensions extension

Returns minutes duration
month() Duration

Available on int, provided by the IntExtensions extension

Returns month duration
seconds() Duration

Available on int, provided by the IntExtensions extension

Returns seconds duration
toBool([int value = 1]) bool

Available on int, provided by the IntExtensions extension

Returns true if the value is 1 otherwise false is returned.
toMonthName({bool isHalfName = false}) String

Available on int, provided by the IntExtensions extension

returns month name from the given int value between 1-12
toOrdinal([String space = '']) String

Available on int, provided by the IntExtensions extension

Converts an int into an ordinal number as a String.
toRoman() String

Available on int, provided by the IntExtensions extension

Converts the integer to Roman numerals Supports numbers from 1 to 3999 Extension to convert integers to Roman numerals Converts the integer to Roman numerals Supports numbers from 1 to 3999
toWeekDay({bool isHalfName = false}) String

Available on int, provided by the IntExtensions extension

returns WeekDay from the given int value 1-7
toWords() String

Available on int, provided by the IntExtensions extension

Converts the integer to words (supports up to 999,999,999,999)
validate({int value = 0}) int

Available on int, provided by the IntExtensions extension

Validate given int is not null and returns given value if null.
weeks() Duration

Available on int, provided by the IntExtensions extension

Returns month duration
years() Duration

Available on int, provided by the IntExtensions extension

Returns years duration