composeSymbol method
Implementation
void composeSymbol(StringBuffer buffer, Symbol symbol) {
if (symbol.prefix != null) {
buffer.write(symbol.prefix!.code);
}
buffer.write(symbol.unit?.code);
if (symbol.exponent != 1) {
buffer.write(symbol.exponent);
}
}