fromUtf8 static method

CryptoFlow<Uint8List> fromUtf8(
  1. String value
)

Creates a lazy strict UTF-8 source.

Encoding occurs during run. Unpaired UTF-16 surrogate code units are rejected instead of being replaced.

Implementation

static CryptoFlow<Uint8List> fromUtf8(String value) => CryptoFlow._(
  _FlowSource('source.utf8', () => _strictUtf8Encode(value)),
  const [],
);