encodeAsync method
Same as encode, but a large Brotli encoding runs in a background Isolate. See encodeContentAsync.
Implementation
FutureOr<Uint8List?> encodeAsync(
Uint8List bytes,
APIContentEncoding encoding,
) => encodeContentAsync(
bytes,
encoding,
gzipLevel: gzipLevel,
brotliQuality: brotliQuality,
);