LegendCellPadding.allPct constructor

const LegendCellPadding.allPct(
  1. double value
)

Creates cell padding where all the offsets are value in percent.

Sample code

Typical eight percent margin on all sides:

const LegendCellPadding.allPct(8.0)

Implementation

const LegendCellPadding.allPct(double value)
    : this.fromLTRBPct(value, value, value, value);