Float constructor Null safety

Float(
  1. double num,
  2. {ErrorGenerator? error_generator}
)

Used to insert a float into nbt data

Implementation

Float(double num, {ErrorGenerator? error_generator}) : _number = num {
  if (error_generator != null) super._gen = error_generator;
}