Group constructor

const Group(
  1. List<Bar> bars, {
  2. GroupConfig config = const GroupConfig(),
  3. BarConfig defaultBarConfig = const BarConfig(),
})

Group of bars, packed together, under a single label.

Using label, a Widget is generated, that will be displayed, beside the group of bars, example:-

final companyCostGroup = Group(
 [...],
 label: (_) => CompanyLogo(),
);

labelBarSpace is the space between label and the group of bars.

Implementation

const Group(
  this.bars, {
  this.config = const GroupConfig(),
  this.defaultBarConfig = const BarConfig(),
});