copy static method

Uint8List copy(
  1. Uint8List src
)

Returns a defensive copy of src.

HINT: Use when storing user-supplied buffers.

Implementation

static Uint8List copy(Uint8List src) => Uint8List.fromList(src);