fromBytes static method

CryptoFlow<Uint8List> fromBytes(
  1. Uint8List value
)

Creates a lazy byte source after defensively copying value.

Implementation

static CryptoFlow<Uint8List> fromBytes(Uint8List value) {
  final retained = Uint8List.fromList(value);
  return CryptoFlow._(
    _FlowSource('source.bytes', () => Uint8List.fromList(retained)),
    const [],
  );
}