operator ~/ method

List<int> operator ~/(
  1. num scalar
)

Returns a new list consisting of the elements of of this divided by scalar and truncated to obtain an integer.

Implementation

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