SliverBarChart constructor

const SliverBarChart({
  1. Key? key,
  2. bool restrain = false,
  3. bool? scrolling,
  4. List<double> heightArray = const [50.0, 78.0, 90.0, 67.0, 36.0],
  5. double maxWidth = 75.0,
  6. double minHeight = 30.0,
  7. double maxHeight = 175.0,
  8. bool fluctuating = false,
  9. required BarChartWidget barWidget,
})

Creates a sliver that varies its size when it is scrolled to the start of a viewport.

The delegate, restrain, and fluctuating arguments must not be null.

Implementation

const SliverBarChart({
  Key? key,
  this.restrain = false,
  this.scrolling,
  this.heightArray = const [50.0, 78.0, 90.0, 67.0, 36.0],
  this.maxWidth = 75.0,
  this.minHeight = 30.0,
  this.maxHeight = 175.0,
  this.fluctuating = false,
  required this.barWidget,
}) : super(key: key);