handler method

void handler()

Implementation

void handler() {
  Clipboard.getData(Clipboard.kTextPlain)
      .then((value) => {this.onShare(value!.text)})
      .catchError((error) => {throw error});
}