Integer constructor Null safety

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

Used to integer a integer into nbt data

Implementation

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