padding property

(EdgeInsets Function(Size)?) padding
final

The padding from coordinate region to the widget border.

This is a function with chart size as input that you may need to calculate the padding.

Usually, the axes is attached to the border of coordinate region (See details in Coord), and in the padding space.

If null, a default EdgeInsets.fromLTRB(40, 5, 10, 20) for RectCoord and EdgeInsets.all(10) for PolarCoord is set.

Implementation

final EdgeInsets Function(Size)? padding;