enabled property

bool get enabled

Implementation

bool get enabled => onPressed != null;