copyText method

void copyText(
  1. String text
)

Puts a text into the clipboard and shows a snackbar.

Implementation

void copyText(String text) {
  PlatformUtils.copy(text: text);
  MessagePopup.success('label_copied'.l10n, bottom: 76);
}