appendString method
Appends value
string at the end of the file using provided encoding
.
Implementation
Future<void> appendString(String value, {Encoding encoding = utf8}) async {
final fileAccess = await open(mode: FileMode.writeOnlyAppend);
await fileAccess.writeString(value, encoding: encoding);
await fileAccess.close();
}