Short constructor Null safety

Short(
  1. int num,
  2. {ErrorGenerator? error_generator}
)

Used to insert a short into nbt data

Implementation

Short(int num, {ErrorGenerator? error_generator}) {
  set(num);
  if (error_generator != null) super._gen = error_generator;
}