Write the msg.toString() with the pen's current settings and then reset all attributes.
msg.toString()
String write(Object msg) => '${this}$msg$up';