LegendCellPadding.allPx constructor

const LegendCellPadding.allPx(
  1. double value
)

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

Sample code

Typical eight-pixel margin on all sides:

const LegendCellPadding.allPx(8.0)

Implementation

const LegendCellPadding.allPx(double value)
    : this.fromLTRBPx(value, value, value, value);