dvAsUint8List function

Uint8List dvAsUint8List(
  1. List<int> bytes
)

bytes as a Uint8List, without copying when it already is one.

Implementation

Uint8List dvAsUint8List(List<int> bytes) =>
    bytes is Uint8List ? bytes : Uint8List.fromList(bytes);