writeNum method

void writeNum(
  1. num? value
)

Implementation

void writeNum(num? value) {
  if (value == null) {
    writeNil();
    return;
  }

  switch (value) {
    case int v:
      writeInt(v);
    case double v:
      _writeFloatOrDouble(v);
  }
}