dart_clipboard 0.3.0 copy "dart_clipboard: ^0.3.0" to clipboard
dart_clipboard: ^0.3.0 copied to clipboard

A Dart package to operate the clipboard using Rust FFI. This is intended for use in desktop applications.

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 contents;

  // Get contents of the clipboard.
  contents = Clipboard.getContents();

  // Set contents to the clipboard.
  contents = "All the world's a stage";
  Clipboard.setContents(contents);
}
4
likes
120
pub points
52%
popularity

Publisher

unverified uploader

A Dart package to operate the clipboard using Rust FFI. This is intended for use in desktop applications.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

ffi, test

More

Packages that depend on dart_clipboard