LedgerPlotLabel constructor

const LedgerPlotLabel({
  1. required double top,
  2. required Widget child,
  3. double? left,
  4. double? right,
  5. Offset shift = Offset.zero,
})

A label holding child, placed at left or right and top.

Implementation

const LedgerPlotLabel({
  required this.top,
  required this.child,
  this.left,
  this.right,
  this.shift = Offset.zero,
}) : assert((left == null) != (right == null), 'left or right');