copyAction method

void copyAction(
  1. String text,
  2. String successToast
)

Implementation

void copyAction(String text, String successToast) {
  Clipboard.setData(ClipboardData(text: text));
  makeToast(msg: successToast);
}