ZLibEncoder class
Compress data with the zlib format encoder.
The actual encoder used will depend on the platform the code is run on.
In a 'dart:io' based platform, like Flutter, the native ZLibCodec will
be used to improve performance. On web platforms, a Dart implementation
of ZLib will be used, via the Deflate class.
If you want to force the use of the Dart implementation, you can use the
ZLibEncoderWeb class.
Constructors
- ZLibEncoder()
- 
          
            const
Properties
- hashCode → int
- 
  The hash code for this object.
  no setterinherited
- runtimeType → Type
- 
  A representation of the runtime type of the object.
  no setterinherited
Methods
- 
  encode(List< int> bytes, {int? level, int windowBits = maxWindowBits}) → List<int> 
- Alias for encodeBytes, kept for backwards compatibility.
- 
  encodeBytes(List< int> bytes, {int? level, int windowBits = maxWindowBits}) → Uint8List
- 
  Compress the given byteswith the ZLib format.levelwill set the compression level to use, between 0 and 9, 6 is the default.
- 
  noSuchMethod(Invocation invocation) → dynamic 
- 
  Invoked when a nonexistent method or property is accessed.
  inherited
- 
  toString() → String 
- 
  A string representation of this object.
  inherited
Operators
- 
  operator ==(Object other) → bool 
- 
  The equality operator.
  inherited
Constants
- maxWindowBits → const int