copyText method

Future<bool> copyText(
  1. String text
)

Copies text into the system clipboard.

Implementation

Future<bool> copyText(String text) {
  if (text.isEmpty) {
    throw ArgumentError.value(text, 'text', 'Text cannot be empty.');
  }
  return NexoraSdkPlatform.instance.copyText(text);
}