copy static method

Future<void> copy(
  1. String text
)

Utils function to copy on clipboard dynamic text

Implementation

static Future<void> copy(String text) async {
  if (text.isNotEmpty) {
    Clipboard.setData(ClipboardData(text: text));
  }
}