enabled property

bool get enabled

Whether the item accepts taps.

Implementation

bool get enabled => onTap != null;