NbtCompression enum Null safety

The compression of a NbtFile. Implementation of detecting the compression can be found at NbtFileReader#detectCompression.

Constants

gzip → const NbtCompression

Gzip compressed files usually start with 1F.

const NbtCompression(1)
none → const NbtCompression

The file does not have any compression.

const NbtCompression(0)
unknown → const NbtCompression

There was an error reading the compression.

const NbtCompression(3)
values → const List<NbtCompression>

A constant List of the values in this enum, in order of their declaration.

const List<NbtCompression>
zlib → const NbtCompression

Zlib compressed files usually start with 78.

const NbtCompression(2)

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
index int

The integer index of this enum.

final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
override

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited