description

# sublist abstract method

Float32x4List sublist(

1. int start, [
2. int? end

])
override

Creates a new list containing the elements between `start` and `end`.

The new list is a `Float32x4List` containing the elements of this list at positions greater than or equal to `start` and less than `end` in the same order as they occur in this list.

    var numbers = Float32x4List.fromList([
      Float32x4(0, 1, 2, 3),
      Float32x4(1, 2, 3, 4),
      Float32x4(2, 3, 4, 5),
      Float32x4(3, 4, 5, 6),
      Float32x4(4, 5, 6, 7),
    ]);
    print(numbers.sublist(1, 2)); // [Float32x4(1, 2, 3, 4)]
    print(numbers.sublist(1, 2).runtimeType); // Float32x4List

If `end` is omitted, it defaults to the length of this list.

    print(numbers.sublist(4)); // [Float32x4(4, 5, 6, 7)]

The `start` and `end` positions must satisfy the relations 0 ≤ `start` ≤ `end` ≤ `this.length`. If `end` is equal to `start`, then the returned list is empty.

## Implementation

    Float32x4List sublist(int start, [int? end]);