write method
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);
}