@override Future<void> write(Uint8List data) async { if (writeDelay == Duration(seconds: 0)) { return _write(data); } else { Future<void>.delayed(writeDelay, () { return _write(data); }); } }