This site requires javascript.
Android Code Search
file:androidx/compose/ui/unit/Dp.kt function:takeOrElse
search
close
info_outline
more_vert
Result 1 of 1
content_copy
Search Result Root
androidx/platform/frameworks/support
keyboard_arrow_right
Branch
Branch
androidx-main
keyboard_arrow_right
Search Result Path
compose/ui/ui-unit/src/commonMain/kotlin/androidx/compose/ui/unit/
Dp.kt
content_copy
Preview
107:
108:
109:
*/
inline
fun
Dp.
takeOrElse
(block: () -> Dp): Dp =
if
(isSpecified) this
else
block()
264:
265:
266:
*/
inline
fun
DpOffset.
takeOrElse
(block: () -> DpOffset): DpOffset =
if
(isSpecified) this
else
block()
373:
374:
375:
*/
inline
fun
DpSize.
takeOrElse
(block: () -> DpSize): DpSize =
if
(isSpecified) this
else
block()
chevron_left
1
chevron_right
Results per page
10
We serve cookies on this site to analyze traffic, remember your preferences, and optimize your experience.
Got it
Help
Open branch androidx-main