write method

String write(
  1. Object msg
)

Write the msg.toString() with the pen's current settings and then reset all attributes.

Implementation

String write(Object msg) => '${this}$msg$up';