copyWidget method

Widget copyWidget(
  1. dynamic context
)

Implementation

Widget copyWidget(context) {
  // final snackBar = SnackBar(
  //   content: Text('Copied to Clipboard'),
  //   action: SnackBarAction(label: 'Undo', onPressed: () {}),
  // );
  return InkWell(
    onTap: () {
      Clipboard.setData(ClipboardData(text: toString()));
    },
    child: this,
  );
}