IntNullableExtensions extension

int Extensions

on

Properties

addZeroPrefix String?
Validate given int is not null and returns given value if null.
no setter
circularBorderRadius BorderRadius
Returns Radius
no setter
days Duration
Returns days duration
no setter
height Widget
Leaves given height of space
no setter
hours Duration
Returns hours duration
no setter
isEmptyOrNull bool
Checks if the given String s is null or empty
no setter
maxSpace Widget
A widget that takes, at most, an amount of space in a Row, Column,or Flex widget. The maxSpace property converts the integer value to a MaxSpace widget, which is useful for creating flexible layouts where certain elements need to occupy a specific amount of space.
no setter
microseconds Duration
Returns microseconds duration 5.microseconds
no setter
milliseconds Duration
Returns milliseconds duration
no setter
minutes Duration
Returns minutes duration
no setter
month Duration
Returns month duration
no setter
seconds Duration
Returns seconds duration
no setter
size Size
Returns Size
no setter
space Widget
This extension provides a method to convert a nullable int value to a Widget that takes a fixed amount of space in the direction of its parent.
no setter
spaceExpand Widget
This extension provides a way to handle nullable integers and use them to create a space widget. It validates the nullable integer, converting it to a non-nullable double, and uses it to create a space widget that expands in the cross axis direction.
no setter
weeks Duration
Returns month duration
no setter
width Widget
Leaves given width of space
no setter
years Duration
Returns years duration
no setter

Methods

lastDigits(int n) int
get last charts of give value 'I like dart language'.lastChars(13) // dart language
toBool([int value = 1]) bool
Returns true if the value is 1 otherwise false is returned.
validate({int value = 0}) int
Validate given int is not null and returns given value if null.