round method Null safety

  1. @override
void round()
override

Rounds elements.

Implementation

@override
void round() {
  final elements = this.elements;
  final n = length;
  for (var i = 0; i < n; i++) {
    elements[i] = elements[i].roundToDouble();
  }
}