asUint8List function

Uint8List asUint8List(
  1. List<int> bytes
)

List

Implementation

Uint8List asUint8List(List<int> bytes) {
  return (bytes is Uint8List && bytes.runtimeType == Uint8List)
      ? bytes
      : Uint8List.fromList(bytes);
}