mulScalar method Null safety

  1. @override
void mulScalar(
  1. num value
)
override

Multiplies elements by a scalar.

Implementation

@override
void mulScalar(num value) {
  final elements = this.elements;
  final n = length;
  for (var i = 0; i < n; i++) {
    elements[i] *= value;
  }
}