write method

  1. @override
Future<void> write(
  1. Iterable<DataWriterItem> items
)
override

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