writeNum method
Implementation
void writeNum(num? value) {
if (value == null) {
writeNil();
return;
}
switch (value) {
case int v:
writeInt(v);
case double v:
_writeFloatOrDouble(v);
}
}
void writeNum(num? value) {
if (value == null) {
writeNil();
return;
}
switch (value) {
case int v:
writeInt(v);
case double v:
_writeFloatOrDouble(v);
}
}