set

fun set(top: Int, left: Int, bottom: Int, right: Int)

Updates all inset values at once.

This is a convenience method to avoid assigning each property individually.

Parameters

top

The inset from the top edge.

left

The inset from the left edge.

bottom

The inset from the bottom edge.

right

The inset from the right edge.


fun set(insets: EdgeInsets)