Byte.Boolean constructor Null safety

Byte.Boolean(
  1. bool b,
  2. {ErrorGenerator? error_generator}
)

Used to insert a boolean into nbt data

Implementation

Byte.Boolean(bool b, {ErrorGenerator? error_generator}) {
  set(b);
  if (error_generator != null) super._gen = error_generator;
}