setCenterTextOffset method

void setCenterTextOffset(
  1. double x,
  2. double y
)

Moves centerText away from the center of the pie.

x is the horizontal shift in dp, positive to the right; y the vertical shift in dp, positive downwards. Both default to 0.

Implementation

void setCenterTextOffset(double x, double y) {
  _centerTextOffsetValue.x = x;
  _centerTextOffsetValue.y = y;
}