onTap method

Future<bool> onTap()

Implementation

Future<bool> onTap() async {
  if (!selectable) return true;
  var list = findAncestorOfExactType(ListModel);
  if (list is ListModel) {
    list.onTap(this);
  }
  return await EventHandler(this).execute(_onClick);
}