abs method

List<double> abs()

Returns a new list consisting of the absolute value of the elements of this.

Implementation

List<double> abs() {
  return List<double>.generate(length, (i) => this[i].abs());
}