encoder property
The Brotli encoder used by encode and encodeAsync.
Replaceable in tests (e.g., to simulate an encoder failure). It must be a top-level or static function, sent to the Isolate of encodeAsync.
Implementation
@visibleForTesting
static APIBrotliEncoder encoder = defaultEncoder;