write method

  1. @override
void write(
  1. String string
)
override

Writes the string.

Implementation

@override
void write(String string) {
  // this could potentially be optimized by using a buffer
  // we would need to make sure to flush the buffer on close though
  file.writeAsStringSync(string, mode: FileMode.append);
}