padding property

Object get padding

Gets or sets the space between this Panel's border and its content. Unlike GraphObject#margin, padding expands the area inside of the Panel's border. If this Panel's size is unconstrained, this will increase the size of the panel. If this Panel's size is constrained, this will decrease the total area for the Panel elements to arrange themselves.

Unlike margin, increases in size due to padding are visually covered by the GraphObject#background.

Padding cannot contain negative numbers. The default value is a Margin of zero.

Implementation

_i2.Object get padding => _i4.getProperty(
      this,
      'padding',
    );
set padding (Object value)

Implementation

set padding(_i2.Object value) {
  _i4.setProperty(
    this,
    'padding',
    value,
  );
}