write method

void write(
  1. Object? object
)

See StringSink.write.

Implementation

void write(Object? object) {
  var string = object.toString();
  if (string.isEmpty) return;
  add(encoding.encode(string));
}