toInt32x4List method

Int32x4List toInt32x4List()

Implementation

Int32x4List toInt32x4List() {
  var length = this.length;
  var size = length ~/ 4;
  if (size * 4 < length) ++size;

  var list = List.generate(size, (i) {
    var j = i * 4;
    var x = this[j].toInt();
    var y = this[++j].toInt();
    var z = this[++j].toInt();
    var w = this[++j].toInt();
    return Int32x4(x, y, z, w);
  });

  return Int32x4List.fromList(list);
}