copyToClipboard static method

Future<bool> copyToClipboard(
  1. String text
)

Implementation

static Future<bool> copyToClipboard(String text) async {
  try {
    final bool result = await _channel.invokeMethod('copyToClipboard', {
      'text': text,
    });
    return result;
  } on PlatformException {
    return false;
  }
}