sublist method Null safety
Returns a new list containing the elements between
The new list is a
Float64x2List containing the elements of this
list at positions greater than or equal to
start and less than
the same order as they occur in this list.
var numbers = Float64x2List.fromList([0, 1, 2, 3, 4]); print(numbers.sublist(1, 3)); // [1, 2] print(numbers.sublist(1, 3).runtimeType); // Float64x2List
end is omitted, it defaults to the length of this list.
print(numbers.sublist(1)); // [1, 2, 3, 4]
end positions must satisfy the relations
end is equal to
start, then the returned list is empty.
Float64x2List sublist(int start, [int? end]);