LegendCellPadding.fromTRBLPx constructor

const LegendCellPadding.fromTRBLPx(
  1. double? topPx,
  2. double? rightPx,
  3. double? bottomPx,
  4. double? leftPx,
)

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

Implementation

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