copy method
Copies the provided text
to the clipboard.
text
is the string to copy to the clipboard.
Implementation
void copy(String text) {
Clipboard.setData(ClipboardData(text: text));
}
Copies the provided text
to the clipboard.
text
is the string to copy to the clipboard.
void copy(String text) {
Clipboard.setData(ClipboardData(text: text));
}