onTap method

  1. @override
void onTap()
override

Implementation

@override
void onTap() {
  if (selectable && !_lastSelected) {
    selected = true;
  } else {
    selected = !selected;
  }
  _lastSelected = selected;
  onTapComponent?.call(selected);
}