IntNullableExtensions extension

int Extensions

on

Methods

addZeroPrefix() String?

Available on int?, provided by the IntNullableExtensions extension

Validate given int is not null and returns given value if null.
days([int value = 0]) Duration

Available on int?, provided by the IntNullableExtensions extension

Returns days duration
hours([int value = 0]) Duration

Available on int?, provided by the IntNullableExtensions extension

Returns hours duration
isNull() bool

Available on int?, provided by the IntNullableExtensions extension

Checks if the given String s is null or empty
lastDigits(int n) int

Available on int?, provided by the IntNullableExtensions extension

get last charts of give value 'I like dart language'.lastChars(13) // dart language
microseconds([int value = 0]) Duration

Available on int?, provided by the IntNullableExtensions extension

Returns microseconds duration 5.microseconds
milliseconds([int value = 0]) Duration

Available on int?, provided by the IntNullableExtensions extension

Returns milliseconds duration
minutes([int value = 0]) Duration

Available on int?, provided by the IntNullableExtensions extension

Returns minutes duration
month([int value = 0]) Duration

Available on int?, provided by the IntNullableExtensions extension

Returns month duration
seconds([int value = 0]) Duration

Available on int?, provided by the IntNullableExtensions extension

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

Available on int?, provided by the IntNullableExtensions extension

Returns true if the value is 1 otherwise false is returned.
validate([int value = 0]) int

Available on int?, provided by the IntNullableExtensions extension

Validate given int is not null and returns given value if null.
weeks([int value = 0]) Duration

Available on int?, provided by the IntNullableExtensions extension

Returns month duration
years([int value = 0]) Duration

Available on int?, provided by the IntNullableExtensions extension

Returns years duration