copyToClipboard function
Implementation
void copyToClipboard(BuildContext context, String text, String label) {
copyToClipboardWithMessenger(
ScaffoldMessenger.maybeOf(context),
text,
'$label copied',
);
}
void copyToClipboard(BuildContext context, String text, String label) {
copyToClipboardWithMessenger(
ScaffoldMessenger.maybeOf(context),
text,
'$label copied',
);
}