Array.fixed constructor

Array.fixed(
  1. int length, {
  2. double? initialValue,
})

Implementation

Array.fixed(int length, {double? initialValue}) {
  if (initialValue != null) {
    l = List<double>.generate(length, (i) => initialValue);
  } else {
    l = List<double>.filled(length, 0.0);
  }
}