padding
Adds checked distances around the virtual child. The new behavior is appended inside the existing modifier chain. Measurement reports an ArithmeticException if a measured child extent plus the checked inset total overflows.
Return
this chain with one appended padding modifier.
Parameters
the distances applied to each side.
Adds one distance around every side of the virtual child. The new behavior is appended inside the existing modifier chain.
Return
this chain with one appended padding modifier.
Parameters
the non-negative distance applied to every side.
Throws
when all is negative.
Adds equal horizontal and equal vertical distances around the virtual child. The new behavior is appended inside the existing modifier chain.
Return
this chain with one appended padding modifier.
Parameters
the non-negative distance applied to the left and right sides.
the non-negative distance applied to the top and bottom sides.
Throws
when either distance is negative.
when twice either distance cannot be represented as an Int.
Adds independently specified distances around the virtual child. Unspecified sides default to zero, and the new behavior is appended inside the existing modifier chain.
Return
this chain with one appended padding modifier.
Parameters
the non-negative distance applied to the left side.
the non-negative distance applied to the top side.
the non-negative distance applied to the right side.
the non-negative distance applied to the bottom side.
Throws
when any distance is negative.
when either axis total cannot be represented as an Int.