toList method

List<int> toList()

Returns the bytes as a List<int> with signed values (-128 to 127).

Example:

final bytes = Byte.fromList([100, -56, 0]);
print(bytes.toList());  // [100, -56, 0]

Implementation

List<int> toList() => List<int>.from(_bytes);