LegendCellPadding.fromTRBLPct constructor

const LegendCellPadding.fromTRBLPct(
  1. double? topPct,
  2. double? rightPct,
  3. double? bottomPct,
  4. double? leftPct,
)

Creates padding in percents from the top, right, bottom, and left.

Implementation

const LegendCellPadding.fromTRBLPct(
    this.topPct, this.rightPct, this.bottomPct, this.leftPct)
    : topPx = null,
      rightPx = null,
      bottomPx = null,
      leftPx = null;