write method
Writes the provided items to the clipboard.
Implementation
@override
Future<void> write(Iterable<DataWriterItem> items) async {
final token = _event.beginWrite();
if (_event.isSynchronous) {
items.withHandlesSync((handles) async {
_event.write(token, handles);
});
} else {
items.withHandles((handles) async {
_event.write(token, handles);
});
}
}