sublist method

ByteArray sublist(
  1. int start, [
  2. int? end
])

Returns a new ByteArray with underlying Uint8List containing the elements between start and end.

Implementation

ByteArray sublist(int start, [int? end]) =>
    ByteArray.fromList(_bytes.sublist(start, end));