pasteboardClear method
Clears the clipboard. When onlyIfOwned is true the clipboard is only
cleared if it still holds the value last written by this plugin.
Returns true when the clipboard was cleared.
Implementation
Future<bool> pasteboardClear({bool onlyIfOwned = false}) async {
final result = await _channel.invokeMethod<bool>('pasteboard#clear', {
'onlyIfOwned': onlyIfOwned,
});
return result ?? false;
}