-
public class ComponentSize.Companion
-
-
Field Summary
Fields Modifier and Type Field Description private final ComponentSizeZeroprivate final ComponentSizeFillMaxSizepublic final static ComponentSize.CompanionINSTANCE
-
Method Summary
Modifier and Type Method Description final ComponentSizesquare(Dp size)Creates a square size with the same value for width and height. final ComponentSizefillMaxWidth(Dp height)Represents a fill max width. final ComponentSizefillMaxHeight(Dp width)Represents a fill max height. final ComponentSizeheight(Dp height)Represents a height size. final ComponentSizewidth(Dp width)Represents a width size. final ComponentSizegetZero()Represents a zero size. final ComponentSizegetFillMaxSize()Represents a fill max size. -
-
Method Detail
-
square
final ComponentSize square(Dp size)
Creates a square size with the same value for width and height.
- Parameters:
size- The size value.
-
fillMaxWidth
final ComponentSize fillMaxWidth(Dp height)
Represents a fill max width.
- Parameters:
height- The height value.
-
fillMaxHeight
final ComponentSize fillMaxHeight(Dp width)
Represents a fill max height.
- Parameters:
width- The width value.
-
height
final ComponentSize height(Dp height)
Represents a height size.
- Parameters:
height- The height value.
-
width
final ComponentSize width(Dp width)
Represents a width size.
- Parameters:
width- The width value.
-
getZero
final ComponentSize getZero()
Represents a zero size.
-
getFillMaxSize
final ComponentSize getFillMaxSize()
Represents a fill max size.
-
-
-
-