dart_clipboard 0.1.0
dart_clipboard: ^0.1.0 copied to clipboard
A Dart package to operate the clipboard using Rust FFI.
example/example.dart
// Copyright (c) 2021 ippee
// This source code is under the MIT License.
// See http://opensource.org/licenses/mit-license.php
import 'package:dart_clipboard/dart_clipboard.dart';
void main() {
var clipboard = Clipboard();
var contents;
// Get contents of the clipboard.
contents = clipboard.getContents();
// Set contents to the clipboard.
contents = "All the world's a stage";
clipboard.setContents(contents);
}