ValueBuffer constructor

ValueBuffer({
  1. required int size,
  2. double fallSpeed = 0.08,
  3. double sensibility = 8.0,
})

Implementation

ValueBuffer({
  required int size,
  this.fallSpeed = 0.08,
  this.sensibility = 8.0,
}) {
  levels = List.filled(size, 0.0);
  peakLevels = List.filled(size, 0.0);
  meanLevels = List.filled(size, 0.0);
}