readTag method Null safety

NbtTag readTag(
  1. NbtReader nbtReader,
  2. {bool withName = true}
)

Reads a NbtTag from fileReader. If the parent is a NbtList or NbtArray, withName should be set to false to avoid reading the name of this Tag.

Implementation

NbtTag readTag(NbtReader nbtReader, {bool withName = true});