onClick method

dynamic onClick(
  1. dynamic key
)

Implementation

onClick(key) {
  if (key == 1) {
    isShare = !isShare;
    notifyListeners();
  } else {
    shareFiles();
  }
}