arraySlice static method

dynamic arraySlice(
  1. dynamic array, [
  2. int? from,
  3. int? to
])

Implementation

static arraySlice(array, [int? from, int? to]) {
  // if ( AnimationUtils.isTypedArray( array ) ) {
  if (array! is List) {
    print(" AnimationUtils.arraySlice array: $array ");

    // 	// in ios9 array.subarray(from, null) will return empty array
    // 	// but array.subarray(from) or array.subarray(from, len) is correct
    // 	return new array.constructor( array.subarray( from, to != null ? to : array.length ) );

  }

  return array.slice(from, to);
}