orNull

Color extension, if Color is not specified, return null.

Receiver

the current color.

Return

Color or null.


fun Dp.orNull(): Dp?

Dp extension, if Dp is not specified, return null.

Receiver

Dp

Return

Dp or null.


DpSize extension, if DpSize is not specified, return null.

Receiver

DpSize

Return

DpSize or null.


TextUnit extension, if TextUnit is not specified, return null.

Receiver

TextUnit

Return

TextUnit or null.


Size extension, if Size is not specified, return null.

Receiver

Size

Return

Size or null.


Offset extension, if Offset is not specified, return null.

Receiver

Offset

Return

Offset or null.


DpOffset extension, if DpOffset is not specified, return null.

Receiver

DpOffset

Return

DpOffset or null.


ScaleFactor extension, if ScaleFactor is not specified, return null.

Receiver

ScaleFactor

Return

ScaleFactor or null.