GZipDecoder class

Decompress data with the gzip format decoder. The actual decoder used will depend on the platform the code is run on. In a 'dart:io' based platform, like Flutter, the native GZipCodec will be used to improve performance. On web platforms, a Dart implementation of ZLib will be used, via the Inflate class. If you want to force the use of the Dart implementation, you can use the GZipDecoderWeb class.

Constructors

GZipDecoder.new()
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

decodeBytes(List<int> bytes, {bool verify = false}) Uint8List
Decompress the given bytes with the GZip format. verify can be used to validate the checksum of the decompressed data, though it is not guaranteed this will be used.
decodeStream(InputStream input, OutputStream output, {bool verify = false}) bool
Decompress the given input with the GZip format, writing the decompressed data to the output stream. verify can be used to validate the checksum of the decompressed data, though it is not guaranteed this will be used.
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