operator * method

List<double> operator *(
  1. num scalar
)

Returns a new list containing the elements of this multiplied by scalar.

Implementation

List<double> operator *(num scalar) {
  return List<double>.generate(length, (i) => this[i] * scalar);
}