write method
Implementation
Future<Map<String, dynamic>> write(String text) async {
var result = await _writeNoBlock(text, trailerBlock);
while (result['id'] == null) {
await Future.delayed(Duration(milliseconds: 50));
result = await _writeNoBlock(text, trailerBlock);
}
return result;
}