LegendCellPadding class

Stores legend cell padding, in percents or pixels.

If a percent is specified, it takes precedence over a flat pixel value.

Constructors

LegendCellPadding.allPct(double value)
Creates cell padding where all the offsets are value in percent.
const
LegendCellPadding.allPx(double value)
Creates cell padding where all the offsets are value in pixels.
const
LegendCellPadding.fromLTRBPct(double? leftPct, double? topPct, double? rightPct, double? bottomPct)
Creates padding in percents from the left, top, right, and bottom.
const
LegendCellPadding.fromLTRBPx(double? leftPx, double? topPx, double? rightPx, double? bottomPx)
Creates padding in pixels from the left, top, right, and bottom.
const
LegendCellPadding.fromTRBLPct(double? topPct, double? rightPct, double? bottomPct, double? leftPct)
Creates padding in percents from the top, right, bottom, and left.
const
LegendCellPadding.fromTRBLPx(double? topPx, double? rightPx, double? bottomPx, double? leftPx)
Creates padding in pixels from the top, right, bottom, and left.
const

Properties

bottomPct double?
final
bottomPx double?
final
hashCode int
The hash code for this object.
no setterinherited
leftPct double?
final
leftPx double?
final
rightPct double?
final
rightPx double?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
topPct double?
final
topPx double?
final

Methods

bottom(num height) double
left(num width) double
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
top(num height) double
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited