toListOfInt method

List<int> toListOfInt()

Returns a new list containing the elements of this rounded to int.

Implementation

List<int> toListOfInt() {
  return List<int>.generate(length, (i) => this[i].round());
}